From 80c1163eed2342094f581f892b7250162c9e55a1 Mon Sep 17 00:00:00 2001 From: samuel-p Date: Wed, 27 Jan 2021 23:32:49 +0100 Subject: [PATCH] updated Dockerfile --- Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5a50060..17d1328 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,10 @@ ENV MORTY_VERSION="4021e4369d6f62690474991a9b6901b751b940d5" WORKDIR $GOPATH/src/github.com/asciimoo/morty -RUN apk add --no-cache git="2.26.2-r0" \ - && git clone https://github.com/asciimoo/morty.git . \ - && git checkout "${MORTY_VERSION}" +RUN apk update && apk upgrade && \ + apk add --no-cache git="2.26.2-r0" && \ + git clone https://github.com/asciimoo/morty.git . && \ + git checkout "${MORTY_VERSION}" RUN go get -d -v && gofmt -l ./ && go build . @@ -22,9 +23,10 @@ FROM arm32v7/alpine:3.12.3@sha256:299294be8699c1b323c137f972fd0aa5eaa4b95489c213 FROM arm64v8/alpine:3.12.3@sha256:549694ea68340c26d1d85c00039aa11ad835be279bfd475ff4284b705f92c24e AS base-arm64 FROM base-${ARCH} -RUN apk --no-cache add ca-certificates="20191127-r4" \ - && rm -f /var/cache/apk/* \ - && adduser -D -h /usr/local/morty -s /bin/false morty morty +RUN apk update && apk upgrade && \ + apk --no-cache add ca-certificates="20191127-r4" && \ + rm -f /var/cache/apk/* && \ + adduser -D -h /usr/local/morty -s /bin/false morty morty COPY --from=builder /go/src/github.com/asciimoo/morty/morty /usr/local/morty/morty