File size: 739 Bytes
2d84d46 a30e851 126a0fb a30e851 2d84d46 a30e851 2d84d46 a30e851 2d84d46 a30e851 2d84d46 a30e851 | 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 26 27 28 29 30 31 32 33 |
######################## WRITE YOUR DOCKERFILE SCRIPT HERE #########################
# Use the official Python base image
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
git \
curl \
&& 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 port that Gradio will run on
EXPOSE 7860
# Run the app
CMD ["python", "app.py"]
|