Skip to content

Commit 6cd313e

Browse files
committed
ditto
1 parent c08121e commit 6cd313e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile.goose

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ FROM golang:${GO_VER}-alpine${ALPINE_VER} AS builder
99
WORKDIR /src
1010

1111
# 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
1414
RUN apk add make git
1515

1616
COPY . .
@@ -19,13 +19,12 @@ RUN make .install-goose
1919

2020
# second release stage
2121
FROM alpine:${ALPINE_VER}
22-
ARG ALPINE_VER
2322

2423
# create user other than root and install updated
2524
RUN addgroup -g 101 app && \
2625
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
2928

3029
# place all necessary executables and other files into /app directory
3130
WORKDIR /app/

0 commit comments

Comments
 (0)