Spaces:
Running
Running
Download Dockerfile from Karthix1/ai-code-explainer: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/spaces/Karthix1/ai-code-explainer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Karthix1/ai-code-explainer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Karthix1/ai-code-explainer/resolve/main/Dockerfile
370 Bytes
| # Stage 1: Use an official Python runtime as a parent image | |
| # Using a -slim version is a good practice as it reduces the final image size. | |
| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.headless=true"] |