Download Dockerfile from AAnvar/GA_NLP: direct link, hf CLI and curl.
- Browser
- Download file 739 Bytes
-
https://huggingface.co/spaces/AAnvar/GA_NLP/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AAnvar/GA_NLP/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AAnvar/GA_NLP/resolve/main/Dockerfile
739 Bytes
| ######################## WRITE YOUR DOCKERFILE SCRIPT HERE ######################### | |
| # Use the official Python base image | |
| FROM python:3.11-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the current directory contents into the container at /app | |
| COPY . /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| git \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| # Expose the port that Gradio will run on | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["python", "app.py"] | |