Spaces:
Runtime error
Runtime error
Download Dockerfile from apophis51/FlaskProject: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/spaces/apophis51/FlaskProject/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/apophis51/FlaskProject/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/apophis51/FlaskProject/resolve/main/Dockerfile
499 Bytes
| FROM python:3.9 | |
| COPY requirements.txt / | |
| RUN pip3 install --upgrade pip | |
| RUN pip3 install optimum auto-gptq | |
| RUN pip3 install -r /requirements.txt | |
| # Install the optimum and auto-gptq packages | |
| COPY . /app | |
| WORKDIR /app | |
| EXPOSE 7860 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| COPY --chown=user . $HOME/app | |
| # Start the Flask app on port 7860, the default port expected by Spaces | |
| CMD ["gunicorn","--config", "gunicorn_config.py", "app:app"] | |