refactor: improve system dependencies installation in Dockerfile.base
Some checks failed
Build Worker Base and Application Images / check-base-changes (push) Successful in 8s
Build Worker Base and Application Images / build-base (push) Failing after 2m42s
Build Worker Base and Application Images / build-docker (push) Has been skipped
Build Worker Base and Application Images / deploy-stack (push) Has been skipped

This commit is contained in:
Siwat Sirichai 2025-08-31 01:10:32 +07:00
parent 5d7cacc4fc
commit 0ae26d3a6d

View file

@ -2,7 +2,16 @@
FROM pytorch/pytorch:2.8.0-cuda12.6-cudnn9-runtime
# Install system dependencies
RUN apt update && apt install -y libgl1 && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install -y \
libgl1 \
libglib2.0-0 \
libgthread-2.0-0 \
libgstreamer1.0-0 \
libgtk2.0-0 \
libavcodec-dev \
libavformat-dev \
libswscale-dev \
&& rm -rf /var/lib/apt/lists/*
# Copy and install base requirements (ML dependencies that rarely change)
COPY requirements.base.txt .