SizeRecommend / Dockerfile
carsten12's picture
Create Dockerfile
9def129 verified
Raw History Blame Contribute Delete
542 Bytes
# Use a lightweight Python base
FROM python:3.10-slim
# Install any OS‐level deps (if needed)
RUN apt-get update && apt-get install -y --no-install-recommends \
# (no extra system packages needed in this particular app) \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy our application code
COPY app.py .
# Expose Gradio’s default port
EXPOSE 7860
# Launch the app
CMD ["python", "app.py"]