File size: 611 Bytes
2680a3e 3d41682 2680a3e 3d41682 2680a3e 3d41682 2680a3e 3d41682 2680a3e 3d41682 2680a3e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# Enable BuildKit when building: DOCKER_BUILDKIT=1
FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /home/user/app
# System deps
RUN apt-get update && \
apt-get install -y --no-install-recommends git git-lfs ffmpeg libsm6 libxext6 libgl1-mesa-glx && \
rm -rf /var/lib/apt/lists/* && \
git lfs install
# Upgrade pip
RUN pip install --no-cache-dir pip setuptools
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source
COPY . .
# Expose Flask port
EXPOSE 8080
# Run Flask app (no reloader conflict)
CMD ["python", "app.py"]
|