Skip to content

Commit 4bc1c72

Browse files
committed
Add package installation and install git
1 parent 8b3cf72 commit 4bc1c72

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

go/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@ ARG DEBIAN_VERSION=bookworm
44
FROM golang:${GO_VERSION}-${DEBIAN_VERSION} AS go
55

66
FROM debian:bookworm-slim
7+
78
COPY --from=go /usr/local/go/ /usr/local/go/
89

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+
917
ENV GOPATH=/go
1018

1119
ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH

0 commit comments

Comments
 (0)