File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,14 @@ RUN apt-get update && \
16
16
apt-get install --yes curl && \
17
17
curl --silent --show-error --location \
18
18
"https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" \
19
- -o /usr/local/go.tar.gz
19
+ -o /usr/local/go.tar.gz && \
20
+ rm -rf /var/lib/apt/lists/*
20
21
21
22
ENV PATH=$PATH:/usr/local/go/bin
22
23
ARG GOPATH="/tmp/"
23
24
# Install Go utilities.
24
- RUN apt-get install --yes gcc && \
25
+ RUN apt-get update && \
26
+ apt-get install --yes gcc && \
25
27
mkdir --parents /usr/local/go && \
26
28
tar --extract --gzip --directory=/usr/local/go --file=/usr/local/go.tar.gz --strip-components=1 && \
27
29
mkdir --parents "$GOPATH" && \
@@ -80,6 +82,7 @@ RUN apt-get install --yes gcc && \
80
82
apt-get remove --yes gcc && \
81
83
apt-get autoremove --yes && \
82
84
apt-get clean && \
85
+ rm -rf /var/lib/apt/lists/* && \
83
86
rm -rf /usr/local/go && \
84
87
rm -rf /tmp/go/pkg && \
85
88
rm -rf /tmp/go/src
You can’t perform that action at this time.
0 commit comments