Spaces:
Sleeping
Sleeping
File size: 528 Bytes
1897f56 b8bf1fd 1897f56 b8bf1fd 1897f56 84bd7df |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# 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.12
# The two following lines are requirements for the Dev Mode to be functional
# Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
RUN useradd -m -u 1000 user
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
EXPOSE 7860
COPY --chown=user . /app
CMD ["python", "main.py"]
|