Use a stable debian image in the container

This commit is contained in:
Dadoum 2023-08-09 19:15:01 +02:00
parent 5fee572c0c
commit cfc61a1260

View File

@ -1,5 +1,5 @@
# Base for builder # Base for builder
FROM debian:unstable-slim AS builder FROM debian:bookworm-slim AS builder
# Deps for builder # Deps for builder
RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates ldc git clang dub libz-dev libssl-dev \ RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates ldc git clang dub libz-dev libssl-dev \
&& apt-get clean \ && apt-get clean \
@ -11,7 +11,7 @@ COPY . .
RUN DC=ldc2 dub build -c "static" --build-mode allAtOnce -b release --compiler=ldc2 RUN DC=ldc2 dub build -c "static" --build-mode allAtOnce -b release --compiler=ldc2
# Base for run # Base for run
FROM debian:unstable-slim FROM debian:bookworm-slim
RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates curl \ RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates curl \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*