From 2ca1b2687ee950e15a1563cae1b93472bb4fdc4d Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Wed, 5 Feb 2025 15:04:30 +1030 Subject: [PATCH] fix: install git in Dockerfile for slim image compatibility --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 32955e1..2e27226 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"