Spaces:
Runtime error
Runtime error
Download Dockerfile from jonathanagustin/builder: direct link, hf CLI and curl.
- Browser
- Download file 733 Bytes
-
https://huggingface.co/spaces/jonathanagustin/builder/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jonathanagustin/builder/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jonathanagustin/builder/resolve/main/Dockerfile
733 Bytes
| # Builder worker using Kaniko for daemonless Docker builds | |
| FROM gcr.io/kaniko-project/executor:v1.24.0 AS kaniko | |
| FROM python:3.11-slim | |
| # Copy Kaniko executor | |
| COPY --from=kaniko /kaniko /kaniko | |
| # Install dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| # Kaniko needs this | |
| ENV PATH="/kaniko:${PATH}" | |
| ENV DOCKER_CONFIG="/kaniko/.docker" | |
| # SSL certificates for requests library | |
| ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt | |
| ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |