Spaces:
Sleeping
Sleeping
# Use an official Python image from the Docker Hub | |
FROM python:3.10-slim | |
# Copy setup.sh and give execute permission | |
COPY setup.sh /setup.sh | |
RUN chmod +x /setup.sh | |
# Run setup.sh to install system dependencies | |
RUN /setup.sh | |
# Copy the requirements file and install Python dependencies | |
COPY requirements.txt . | |
RUN pip install -r requirements.txt | |
# Copy the entire app code into the Docker container | |
COPY . . | |
# Command to run the Gradio app | |
CMD ["python3", "app.py"] | |