Spaces:
Sleeping
Sleeping
Download Dockerfile from JAYASREESS/men_d: direct link, hf CLI and curl.
- Browser
- Download file 656 Bytes
-
https://huggingface.co/spaces/JAYASREESS/men_d/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/JAYASREESS/men_d/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/JAYASREESS/men_d/resolve/main/Dockerfile
656 Bytes
| # Use an official Python slim image as a parent image for a smaller size | |
| FROM python:3.12-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy the requirements file first to leverage Docker's layer caching | |
| COPY requirements.txt . | |
| # Install the Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of your application's code, including the trained models | |
| # The .dockerignore file will ensure unnecessary files are excluded | |
| COPY . . | |
| # Expose the port that Gradio runs on | |
| EXPOSE 7860 | |
| # The command to run when the container starts | |
| # This will launch your Gradio application | |
| CMD ["python", "app.py"] |