Spaces:
Sleeping
Sleeping
File size: 1,277 Bytes
769008c f12f393 4ed40e5 dae816e 769008c dae816e f12f393 d21d66c 9ce23e0 0d67f9b dae816e f12f393 430d11c ed8e91b 078a4aa f12f393 dae816e f12f393 320f9aa 769008c b87a914 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
FROM python:3.10
# WORKDIR /code
ENV PYTHONUNBUFFERED=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV PIP_NO_CACHE_DIR=1
# add user
#%52%55%4E%20%75%73%65%72%61%64%64%20-%6D%20-%75%20%31%30%30%30%20%75%73%65%72
RUN adduser --disabled-password --gecos '' user && \
mkdir -p /app && \
chown -R user:user /app
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
ENV tmp=$HOME/tmp \
space=face
# COPY ./requirements.txt /code/requirements.txt
RUN python -m pip install --upgrade pip setuptools
RUN pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN pip install gunicorn
#COPY . .
#CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
#CMD ["gunicorn","-b","0.0.0.0:7860", "main:app","--timeout","1000"]
#CMD ["gunicorn","-b","0.0.0.0:7860", "neo server:app","--timeout","1000999999999"]
CMD ["python", "neo server.py", "-port","7860"]
CMD ["python", "neo server.py", "-port","7860"]
CMD ["python", "neo server.py", "-port","7860"]
CMD ["python", "neo server.py", "-port","7860"]
CMD ["python", "neo server.py", "-port","7860"]
CMD ["python", "neo server.py", "-port","7860"]
|