Spaces:
Runtime error
Runtime error
Download Dockerfile from Dattaluri/Great_Learning: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/spaces/Dattaluri/Great_Learning/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Dattaluri/Great_Learning/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Dattaluri/Great_Learning/resolve/main/Dockerfile
512 Bytes
| # Use a minimal base image with Python 3.9 installed | |
| FROM python:3.9-slim | |
| # Set the working directory inside the container to /app | |
| WORKDIR /app | |
| # Copy the requirements.txt file into the working directory | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application files into the working directory | |
| COPY . . | |
| # Expose port 5000 | |
| EXPOSE 5000 | |
| # Define the command to run the Flask application | |
| CMD ["flask", "run", "--host=0.0.0.0"] | |