Skip to content

Commit c08121e

Browse files
committed
ditto
1 parent 990e296 commit c08121e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Dockerfile.goose

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
ARG GO_VER="1.22"
22
ARG ALPINE_VER="3.20"
3-
ARG ALPINE_MIRROR="https://mirror.yandex.ru/mirrors/alpine/v${ALPINE_VER}/main/"
43

54
# first build stage
65
# by default uses alpine-based image
@@ -10,8 +9,8 @@ FROM golang:${GO_VER}-alpine${ALPINE_VER} AS builder
109
WORKDIR /src
1110

1211
# install updates and build executable
13-
RUN apk update --no-cache -X ${ALPINE_MIRROR}
14-
RUN apk upgrade --no-cache -X ${ALPINE_MIRROR}
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
1514
RUN apk add make git
1615

1716
COPY . .
@@ -21,13 +20,12 @@ RUN make .install-goose
2120
# second release stage
2221
FROM alpine:${ALPINE_VER}
2322
ARG ALPINE_VER
24-
ARG ALPINE_MIRROR
2523

2624
# create user other than root and install updated
2725
RUN addgroup -g 101 app && \
2826
adduser -H -u 101 -G app -s /bin/sh -D app && \
29-
apk update --no-cache -X ${ALPINE_MIRROR} && \
30-
apk upgrade --no-cache -X ${ALPINE_MIRROR}
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
3129

3230
# place all necessary executables and other files into /app directory
3331
WORKDIR /app/

0 commit comments

Comments
 (0)