Spaces:
Sleeping
Sleeping
Download Dockerfile from duqing026/microgrid-dispatch-agent: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/spaces/duqing026/microgrid-dispatch-agent/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/duqing026/microgrid-dispatch-agent/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/duqing026/microgrid-dispatch-agent/resolve/main/Dockerfile
330 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p instance | |
| RUN chmod 777 instance | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] | |