Spaces:
Runtime error
Runtime error
Download Dockerfile from sashtech/demodocker: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/spaces/sashtech/demodocker/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sashtech/demodocker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sashtech/demodocker/resolve/main/Dockerfile
451 Bytes
| # Use the official Python image from Docker Hub | |
| FROM python:3.10-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy requirements.txt and install the dependencies | |
| COPY requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application files | |
| COPY app.py app.py | |
| COPY entrypoint.sh entrypoint.sh | |
| # Make entrypoint.sh executable | |
| RUN chmod +x entrypoint.sh | |
| # Set the entrypoint | |
| ENTRYPOINT ["./entrypoint.sh"] | |