File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ FROM golang:${GO_VER}-alpine${ALPINE_VER} AS builder
9
9
WORKDIR /src
10
10
11
11
# install updates and build executable
12
- RUN apk update --no-cache -X https://mirror.yandex.ru/mirrors/alpine/v${ALPINE_VER} /main
13
- RUN apk upgrade --no-cache -X https://mirror.yandex.ru/mirrors/alpine/v${ALPINE_VER} /main
12
+ RUN apk update --no-cache -X https://mirror.yandex.ru/mirrors/alpine/v3.20 /main
13
+ RUN apk upgrade --no-cache -X https://mirror.yandex.ru/mirrors/alpine/v3.20 /main
14
14
RUN apk add make git
15
15
16
16
COPY . .
@@ -19,13 +19,12 @@ RUN make .install-goose
19
19
20
20
# second release stage
21
21
FROM alpine:${ALPINE_VER}
22
- ARG ALPINE_VER
23
22
24
23
# create user other than root and install updated
25
24
RUN addgroup -g 101 app && \
26
25
adduser -H -u 101 -G app -s /bin/sh -D app && \
27
- apk update --no-cache -X https://mirror.yandex.ru/mirrors/alpine/v${ALPINE_VER} /main && \
28
- apk upgrade --no-cache -X https://mirror.yandex.ru/mirrors/alpine/v${ALPINE_VER} /main
26
+ apk update --no-cache -X https://mirror.yandex.ru/mirrors/alpine/v3.20 /main && \
27
+ apk upgrade --no-cache -X https://mirror.yandex.ru/mirrors/alpine/v3.20 /main
29
28
30
29
# place all necessary executables and other files into /app directory
31
30
WORKDIR /app/
You can’t perform that action at this time.
0 commit comments