naso / Dockerfile
mgbam's picture
Update Dockerfile
2680a3e verified
raw
history blame
611 Bytes
# 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"]