Skip to content

Commit f5e1e11

Browse files
committed
fix[dockerfile]: switch common image from alpine to bookworm-slim to fix polytope-mars install
1 parent f2f9111 commit f5e1e11

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

Dockerfile

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,18 @@ ARG gribjump_base=blank-base
2525

2626
#######################################################
2727
# C O M M O N
28-
# based on alpine linux
28+
# based on python bookworm slim
2929
#######################################################
3030

31-
FROM python:3.11-alpine AS polytope-common
31+
FROM python:3.11-slim-bookworm AS polytope-common
3232

3333
ARG HOME_DIR=/home/polytope
3434
ARG developer_mode
3535

3636
# 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/*
3940

4041
# Create user and group
4142
RUN set -eux \
@@ -77,14 +78,6 @@ RUN set -eux \
7778
# Install the application
7879
RUN uv pip install --upgrade .
7980

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-
8881

8982
#######################################################
9083
# N O O P I M A G E

0 commit comments

Comments
 (0)