Spaces:
Build error
Build error
File size: 745 Bytes
f4304c5 7de5559 f4304c5 bdaa6e2 628e9f1 f4304c5 628e9f1 f4304c5 628e9f1 8692e6d f4304c5 44b4037 f4304c5 d588b2e 06c03c5 | 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 | # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM python:3
USER root
# Set the working directory to the user's home directory
WORKDIR $HOME/app
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
RUN pip install --no-cache-dir --upgrade pip
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
COPY --chown=user . $HOME/app
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN chmod 777 ./*
RUN chmod 777 /usr/local/lib/python3.10/site-packages/mercury/*
ENV MEDIA_ROOT ./media
CMD ["mkdir", "-p", "media"]
CMD ["mercury", "run", "7860"]
|