Spaces:
Running
Running
File size: 546 Bytes
996635e 9c74fd7 c959ace 9c74fd7 2019b16 9c74fd7 2019b16 996635e 9c74fd7 996635e 9c74fd7 c959ace 996635e 5200001 |
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 |
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 WORKDIR=/code \
PATH=/code/.local/bin:$PATH
WORKDIR $WORKDIR
RUN chown -R user:user $WORKDIR
RUN chmod 777 $WORKDIR
COPY --chown=user requirements.txt $WORKDIR/requirements.txt
RUN pip install gradio --no-cache-dir
RUN pip install --no-cache-dir --upgrade -r $WORKDIR/requirements.txt
COPY --chown=user . .
EXPOSE 7860
ENTRYPOINT ["python", "app.py"]
|