Skip to content

Commit efe19a6

Browse files
committed
master | update dockerfile to execute with golang
1 parent ec4f4bb commit efe19a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
############################
22
# STEP 1 build executable binary
33
############################
4-
FROM golang:1.22-bullseye AS build
4+
FROM golang:1.22.3-bookworm AS build
55

66
RUN useradd -u 1001 nonroot
77
RUN update-ca-certificates
@@ -14,7 +14,7 @@ RUN CGO_ENABLED=1 go build -buildvcs=false -ldflags="-linkmode external -extldfl
1414
############################
1515
# STEP 2 create final image
1616
############################
17-
FROM scratch
17+
FROM debian:bookworm-slim
1818

1919
WORKDIR /go/bin
2020

0 commit comments

Comments
 (0)