petter2025's picture
Update Dockerfile
f4308a7 verified
raw
history blame
378 Bytes
FROM python:3.10.16-slim
# Install git and other build dependencies
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
# Verify Python version
RUN python --version
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "app.py"]