Skip to content

Commit

Permalink
migrate to golang:bookworm image
Browse files Browse the repository at this point in the history
This allows us to keep up to date with recent Go releases and security
patches while reducing our configuration in the Dockerfile. We hold on
bump the Go version to the latest in a separate change.
  • Loading branch information
jmhodges committed Nov 25, 2024
1 parent 31a9702 commit ff548a7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
ARG GO_VERSION=1.22
ARG LIBKMSP11_VERSION=1.6

#------------------------------------------------------------------------------
# Base Debian Image
#------------------------------------------------------------------------------
FROM debian:bookworm AS base
ARG GO_VERSION
FROM golang:1.22.1-bookworm AS base

ENV DEBIAN_FRONTEND='noninteractive' \
PATH="${PATH}:/usr/lib/go-${GO_VERSION}/bin:/go/bin" \
GOPATH='/go'
ENV DEBIAN_FRONTEND='noninteractive'

## Enable bookworm-backports
RUN echo "deb http://deb.debian.org/debian/ bookworm-backports main" > /etc/apt/sources.list.d/bookworm-backports.list
Expand All @@ -23,7 +19,6 @@ RUN apt-get update && \
libncurses5 \
devscripts \
apksigner \
golang-${GO_VERSION} \
gcc \
g++ \
libc6-dev \
Expand Down

0 comments on commit ff548a7

Please sign in to comment.