Remove additional apk update
, in Dockerfile (#1079)
This commit is contained in:
parent
44d701a9dd
commit
121dcd79ba
|
@ -5,7 +5,7 @@ FROM golang:${GOVERSION}-alpine AS build
|
||||||
WORKDIR /go/src/crowdsec
|
WORKDIR /go/src/crowdsec
|
||||||
|
|
||||||
# wizard.sh requires GNU coreutils
|
# wizard.sh requires GNU coreutils
|
||||||
RUN apk update && apk add --no-cache git jq gcc libc-dev make bash gettext binutils-gold coreutils
|
RUN apk add --no-cache git jq gcc libc-dev make bash gettext binutils-gold coreutils
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ RUN SYSTEM="docker" make release
|
||||||
RUN cd crowdsec-v* && ./wizard.sh --docker-mode && cd -
|
RUN cd crowdsec-v* && ./wizard.sh --docker-mode && cd -
|
||||||
RUN cscli hub update && cscli collections install crowdsecurity/linux && cscli parsers install crowdsecurity/whitelists
|
RUN cscli hub update && cscli collections install crowdsecurity/linux && cscli parsers install crowdsecurity/whitelists
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk update --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community && apk add --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community tzdata yq
|
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community tzdata yq
|
||||||
COPY --from=build /etc/crowdsec /etc/crowdsec
|
COPY --from=build /etc/crowdsec /etc/crowdsec
|
||||||
COPY --from=build /var/lib/crowdsec /var/lib/crowdsec
|
COPY --from=build /var/lib/crowdsec /var/lib/crowdsec
|
||||||
COPY --from=build /usr/local/bin/crowdsec /usr/local/bin/crowdsec
|
COPY --from=build /usr/local/bin/crowdsec /usr/local/bin/crowdsec
|
||||||
|
|
Loading…
Reference in a new issue