Compare commits

...

2 commits

Author SHA1 Message Date
664ba78ff4 Merge remote-tracking branch 'origin/main' into main
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-27 23:35:50 +01:00
5d178329df updated Dockerfile 2021-01-27 23:35:18 +01:00

View file

@ -10,8 +10,9 @@ ENV FILTRON_VERSION="v0.2.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