fix: install git in Dockerfile for slim image compatibility

This commit is contained in:
Sam Chau
2025-02-05 15:04:30 +10:30
parent 8b9d887275
commit 2ca1b2687e

View File

@@ -2,14 +2,16 @@
FROM python:3.9-slim
WORKDIR /app
# Install git (since we're still using slim)
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Copy pre-built files from dist directory
COPY dist/backend/* .
COPY dist/backend/app ./app
COPY dist/static ./app/static
COPY dist/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Add labels for Docker Hub
LABEL org.opencontainers.image.authors="Dictionarry dictionarry@pm.me"
LABEL org.opencontainers.image.description="Profilarr - Profile manager for *arr apps"
LABEL org.opencontainers.image.source="https://github.com/Dictionarry-Hub/profilarr"