Skip to content

Commit 05dd075

Browse files
committed
Update to use Debian Bookworm
Buster has reached end of life on 30 June 2024. Builds can no longer seem to download and install the packages in the Dockerfile. This change updates it to use the Bookworm release.
1 parent 32fd359 commit 05dd075

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,20 @@ RUN unzip ${release_filename} -d ./tmp && rm ${release_filename} && mv ./tmp/*/*
1818
RUN test -f v && test -x v
1919

2020

21-
FROM thevlang/vlang:buster-base AS run
21+
FROM debian:bookworm AS run
2222
# While the v in the vlang -dev images is out of date, the base images still contain
2323
# valuable run time pre-requisites, so we derive our run image from here:
24-
# https://github.com/vlang/docker/blob/master/docker/vlang/Dockerfile.buster
25-
# Note the pre-compiled release of V does not run on Alpine, hence the switch to Buster.
24+
# https://github.com/vlang/docker/blob/master/docker/base/Dockerfile.debian
25+
# Note the pre-compiled release of V does not run on Alpine, hence the switch to Debian.
2626
RUN apt-get update && \
2727
apt-get install -y --no-install-recommends \
2828
clang llvm-dev && \
2929
apt-get clean && rm -rf /var/cache/apt/archives/* && \
3030
rm -rf /var/lib/apt/lists/*
3131
# Copy the prebuilt V compiler
3232
COPY --from=install /opt/vlang /opt/vlang
33+
# Add vlang to path
34+
ENV PATH "/opt/vlang:${PATH}"
3335
# Test it
3436
RUN v -version
3537

0 commit comments

Comments
 (0)