brch/docker-space-visualization-test
0
1# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker2# you will also find guides on how best to write your Dockerfile3FROM python:3.94 5# Set up a new user named "user" with user ID 10006RUN useradd -m -u 1000 user7 8# Switch to the "user" user9USER user10 11# Set home to the user's home directory12ENV HOME=/home/user \13 PATH=/home/user/.local/bin:$PATH14 15WORKDIR $HOME/app16 17COPY --chown=user . $WORKDIR18 19RUN pip install --no-cache-dir --upgrade pip20RUN pip install --no-cache-dir --upgrade -r $HOME/app/requirements.txt21 22# COPY . .23 24CMD ["python", "python_app.py", "--host", "0.0.0.0", "--port", "7860"]