bitbucket.org/Aishee/synsec@v0.0.0-20210414005726-236fc01a153d/Dockerfile (about) 1 ARG GOVERSION=1.14 2 3 FROM golang:${GOVERSION}-alpine AS build 4 5 WORKDIR /go/src/synsec 6 7 RUN apk add --no-cache git jq gcc libc-dev make bash gettext 8 9 COPY . . 10 11 RUN BUILD_VERSION="$(git describe --tags `git rev-list --tags --max-count=1`)-docker" make release 12 RUN /bin/bash wizard.sh --docker-mode 13 RUN ccscli hub update && ccscli collections install breakteam/linux 14 15 FROM alpine:latest 16 RUN wget https://github.com/mikefarah/yq/releases/download/v4.4.1/yq_linux_amd64 -O /usr/bin/yq && chmod +x /usr/bin/yq 17 COPY --from=build /etc/synsec /etc/synsec 18 COPY --from=build /var/lib/synsec /var/lib/synsec 19 COPY --from=build /usr/local/bin/synsec /usr/local/bin/synsec 20 COPY --from=build /usr/local/bin/ccscli /usr/local/bin/ccscli 21 COPY --from=build /go/src/synsec/docker/docker_start.sh / 22 COPY --from=build /go/src/synsec/docker/config.yaml /etc/synsec/config.yaml 23 24 ENTRYPOINT /bin/sh docker_start.sh