handbookreader / Dockerfile
danielRamon's picture
change Dockerfile
6fed78a
raw
history blame
311 Bytes
# Use Python slim-buster as base image for smaller size
FROM python:3.10.15-slim
# Set working directory
WORKDIR /app
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy Python source files
COPY *.py .