Spaces:
Sleeping
Sleeping
File size: 595 Bytes
d25505f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# Use the official Python image as a base
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Copy the app files into the container
COPY . /app
# Install system dependencies required by some Python packages
RUN apt-get update && apt-get install -y \
git \
&& apt-get clean \
&& 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 default port for Hugging Face Spaces (7860)
EXPOSE 7860
# Command to run your Gradio app
CMD ["python", "app.py"]
|