All checks were successful
Build Worker Base and Application Images / check-base-changes (push) Successful in 8s
Build Worker Base and Application Images / build-base (push) Successful in 5m12s
Build Worker Base and Application Images / build-docker (push) Successful in 3m6s
Build Worker Base and Application Images / deploy-stack (push) Successful in 21s
24 lines
No EOL
667 B
Text
24 lines
No EOL
667 B
Text
# Base image with all ML dependencies
|
|
FROM pytorch/pytorch:2.8.0-cuda12.6-cudnn9-runtime
|
|
|
|
# Install system dependencies
|
|
RUN apt update && apt install -y \
|
|
libgl1 \
|
|
libglib2.0-0 \
|
|
libgstreamer1.0-0 \
|
|
libgtk-3-0 \
|
|
libavcodec58 \
|
|
libavformat58 \
|
|
libswscale5 \
|
|
libgomp1 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy and install base requirements (ML dependencies that rarely change)
|
|
COPY requirements.base.txt .
|
|
RUN pip install --no-cache-dir -r requirements.base.txt
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# This base image will be reused for all worker builds
|
|
CMD ["python3", "-m", "fastapi", "run", "--host", "0.0.0.0", "--port", "8000"] |