TA_3 / Docker
jeffrey1963's picture
Rename Docker.txt to Docker
17d735c verified
raw
history blame contribute delete
448 Bytes
FROM python:3.10-slim
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y --no-install-recommends \
git git-lfs ffmpeg libsm6 libxext6 libgl1 cmake rsync \
&& rm -rf /var/lib/apt/lists/* \
&& git lfs install
WORKDIR /home/user/app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "app.py"]