Download Dockerfile from KalbeDigitalLab/dossier-translation: direct link, hf CLI and curl.
- Browser
- Download file 490 Bytes
-
https://huggingface.co/spaces/KalbeDigitalLab/dossier-translation/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/KalbeDigitalLab/dossier-translation/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/KalbeDigitalLab/dossier-translation/resolve/main/Dockerfile
490 Bytes
| # Use the smallest possible Python base image | |
| FROM python:3.11-slim | |
| # Set the working directory in the container | |
| WORKDIR /. | |
| # Copy the requirements file into the container | |
| COPY requirements.txt ./ | |
| # Install any Python dependencies specified in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application code into the container | |
| COPY . . | |
| EXPOSE 8080 | |
| # Command to run the application | |
| CMD ["streamlit", "run", "app.py", "--server.port", "8080"] |