glow2.0 / Dockerfile
andevs's picture
Update Dockerfile
8e0b8e5 verified
Raw
History Blame Contribute Delete
484 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first (for better caching)
COPY requirements.txt .
# Install ONLY the packages in requirements.txt - NO extra packages
RUN pip install --no-cache-dir --no-deps -r requirements.txt
# Copy the application
COPY app.py .
# Expose the port
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]