Skip to content

Commit

Permalink
feat: update debian version for glibc compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr.malkowski committed Dec 15, 2024
1 parent 8481278 commit fe6ce27
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,9 @@ RUN jlink \
--compress=2

# Step 2: Install the toolbox + external dependencies to a runner container
FROM debian:bullseye-slim AS runner
FROM debian:bookworm-slim AS runner
WORKDIR /app

# Install glibc 2.39
COPY lib/glibc-2.39.tar.gz /tmp/
RUN tar -xvzf /tmp/glibc-2.39.tar.gz -C /opt && \
rm -f /tmp/glibc-2.39.tar.gz && \
ln -sf /opt/glibc-2.39/lib/ld-2.39.so /lib64/ld-linux-x86-64.so.2 && \
ln -sf /opt/glibc-2.39/lib/libc.so.6 /lib64/libc.so.6

ENV LD_LIBRARY_PATH=/opt/glibc-2.39/lib:$LD_LIBRARY_PATH

COPY scripts scripts

# Install GAMS with conda python environment
Expand Down

0 comments on commit fe6ce27

Please sign in to comment.