reduced dockerfile

This commit is contained in:
Karl 2025-07-15 11:19:44 +01:00
parent 13368a0437
commit c174f1dbc9
3 changed files with 4 additions and 9 deletions

View File

@ -1 +1 @@
1.2.6
1.2.7

View File

@ -1,5 +1,5 @@
# Builder stage
FROM python:3.11-slim-bookworm as builder
FROM python:3.11-slim-bookworm AS builder
WORKDIR /app
@ -7,15 +7,10 @@ COPY requirements.txt .
RUN pip install --no-cache-dir --prefix=/install -r requirements.txt
# Final stage
FROM python:3.11-slim-bookworm as final
FROM python:3.11-slim-bookworm AS final
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/*
@ -43,5 +38,5 @@ USER appuser
EXPOSE 5000
ENV FLASK_ENV production
ENV FLASK_ENV=production
CMD ["./run.sh"]

Binary file not shown.