File size: 330 Bytes
6d047e5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Use the official Python image
FROM python:3.10-slim
# Set working directory inside the container
WORKDIR /app
# Copy requirements and install them
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the app
COPY . .
# Set the command to run the application
CMD ["python", "app.py"]
|