File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,18 @@ ARG gribjump_base=blank-base
25
25
26
26
# ######################################################
27
27
# C O M M O N
28
- # based on alpine linux
28
+ # based on python bookworm slim
29
29
# ######################################################
30
30
31
- FROM python:3.11-alpine AS polytope-common
31
+ FROM python:3.11-slim-bookworm AS polytope-common
32
32
33
33
ARG HOME_DIR=/home/polytope
34
34
ARG developer_mode
35
35
36
36
# Install build dependencies
37
- RUN apk add --no-cache --virtual .build-deps gcc musl-dev openldap-dev curl \
38
- && apk add --no-cache openldap
37
+ RUN apt update && apt install -y --no-install-recommends gcc libc6-dev libldap2-dev curl \
38
+ && apt clean \
39
+ && rm -rf /var/lib/apt/lists/*
39
40
40
41
# Create user and group
41
42
RUN set -eux \
@@ -77,14 +78,6 @@ RUN set -eux \
77
78
# Install the application
78
79
RUN uv pip install --upgrade .
79
80
80
- # Clean up build dependencies to reduce image size
81
- USER root
82
- RUN apk del .build-deps
83
-
84
-
85
- # Switch back to polytope user
86
- USER polytope
87
-
88
81
89
82
# ######################################################
90
83
# N O O P I M A G E
You can’t perform that action at this time.
0 commit comments