File size: 305 Bytes
52fe2f1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# 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"] |