Spaces:
Runtime error
Runtime error
Download Dockerfile from abreel/thesis-deployment: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/spaces/abreel/thesis-deployment/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/abreel/thesis-deployment/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/abreel/thesis-deployment/resolve/main/Dockerfile
451 Bytes
| FROM python:3.9-slim | |
| # Set working directory inside the container | |
| WORKDIR /app | |
| # Set the TRANSFORMERS_CACHE environment variable to a writable directory | |
| ENV TRANSFORMERS_CACHE=/app/cache | |
| # Copy the contents of your local directory to the working directory in the container | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port 8080 for your app | |
| EXPOSE 8080 | |
| # Run the Flask app | |
| CMD ["python", "app.py"] | |