Spaces:
Sleeping
Sleeping
File size: 656 Bytes
d77c194 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # 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"] |