From 5d178329df32e041c8b562a828d3a97976a57382 Mon Sep 17 00:00:00 2001 From: samuel-p Date: Wed, 27 Jan 2021 23:35:18 +0100 Subject: [PATCH] updated Dockerfile --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f39cf4..fc450ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,9 @@ ENV FILTRON_VERSION="v0.1.0" WORKDIR $GOPATH/src/github.com/asciimoo/filtron -RUN apk add --no-cache tar="1.32-r1" git="2.26.2-r0" curl="7.69.1-r3" \ - && curl -L "https://github.com/asciimoo/filtron/archive/${FILTRON_VERSION}.tar.gz" | tar xvz --strip 1 +RUN apk update && apk upgrade && \ + apk add --no-cache tar="1.32-r1" git="2.26.2-r0" curl="7.69.1-r3" && \ + curl -L "https://github.com/asciimoo/filtron/archive/${FILTRON_VERSION}.tar.gz" | tar xvz --strip 1 RUN go get -d -v && gofmt -l ./ && go build . @@ -21,8 +22,8 @@ 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" \ - && adduser -D -h /usr/local/filtron -s /bin/false filtron filtron +RUN apk --no-cache add ca-certificates="20191127-r4" && \ + adduser -D -h /usr/local/filtron -s /bin/false filtron filtron COPY --from=builder /go/src/github.com/asciimoo/filtron/example_rules.json /etc/filtron/rules.json COPY --from=builder /go/src/github.com/asciimoo/filtron/filtron /usr/local/filtron/filtron