Download Dockerfile from nopoh22/pythonany: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/spaces/nopoh22/pythonany/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nopoh22/pythonany/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nopoh22/pythonany/resolve/main/Dockerfile
278 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY renewer.py keep_alive.py app.py index.html ./ | |
| RUN useradd -m -u 1000 appuser && chown -R appuser /app | |
| USER appuser | |
| EXPOSE 7860 8080 | |
| CMD ["python", "app.py"] | |