facetorch-app / Dockerfile
tomas-gajarsky's picture
Update Dockerfile
2fee2a2 verified
raw
history blame contribute delete
555 Bytes
FROM python:3.9.12-slim
# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/code
COPY --chown=user requirements.txt $WORKDIR/requirements.txt
RUN pip install --upgrade pip
RUN pip install gradio==4.44.1 pydantic==2.10.6 --no-cache-dir
RUN pip install --no-cache-dir --upgrade -r $WORKDIR/requirements.txt
COPY --chown=user . .
EXPOSE 7860
ENTRYPOINT ["python", "app.py"]