updated docker file
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 4m13s

This commit is contained in:
Karl 2025-07-15 09:28:15 +01:00
parent b2fc0a22a1
commit 96c9ec9d57
2 changed files with 15 additions and 12 deletions

View File

@ -14,3 +14,8 @@ env/
# IDE/Editor
.vscode/
.idea/
# Build artifacts
dockerfile
.dockerignore
*.sample

View File

@ -1,16 +1,6 @@
# Builder stage
FROM python:3.11-slim-bookworm as builder
RUN apt-get update && apt-get install -y --no-install-recommends \
libglib2.0-0 \
libsm6 \
libxrender1 \
libxext6 \
libgomp1 \
libgl1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
@ -32,7 +22,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /app
COPY --from=builder /install /usr/local
COPY . .
COPY app.py .
COPY gunicorn.conf.py .
COPY run.sh .
COPY VERSION .
COPY backend/ backend/
COPY lib/ lib/
COPY static/ static/
COPY templates/ templates/
RUN chmod +x run.sh