File size: 349 Bytes
9167eba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | FROM python:3.10
# Set up the working directory
WORKDIR /app
# Copy the requirements.txt file first
COPY requirements.txt .
# Install all necessary packages
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the app files
COPY . /app
# Run the Gradio app
CMD ["python", "app.py"]
|