# Use a lightweight Python image as the base | |
FROM python:3.11-slim | |
# Set the working directory inside the container | |
WORKDIR /app | |
# Copy all files to the container | |
COPY . /app | |
# Install gradio | |
RUN pip install --no-cache-dir gradio | |
EXPOSE 7860 | |
ENV GRADIO_SERVER_NAME="0.0.0.0" | |
CMD ["python", "app.py"] |