We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b3cf72 commit 4bc1c72Copy full SHA for 4bc1c72
1 file changed
go/Dockerfile
@@ -4,8 +4,16 @@ ARG DEBIAN_VERSION=bookworm
4
FROM golang:${GO_VERSION}-${DEBIAN_VERSION} AS go
5
6
FROM debian:bookworm-slim
7
+
8
COPY --from=go /usr/local/go/ /usr/local/go/
9
10
+# Install additional packages
11
+RUN apt-get update && apt-get install -y --no-install-recommends git && \
12
+ apt-get autoremove -y && \
13
+ apt-get clean -y && \
14
+ rm -r /var/cache/* /var/lib/apt/lists/*
15
16
17
ENV GOPATH=/go
18
19
ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
0 commit comments