github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/Dockerfile (about) 1 FROM golang:alpine AS BUILD 2 3 # make binary 4 RUN apk add --no-cache build-base musl-dev git curl make cmake binutils-gold 5 COPY . /go/src/github.com/projecteru2/core 6 WORKDIR /go/src/github.com/projecteru2/core 7 ARG KEEP_SYMBOL 8 RUN make build && ./eru-core --version 9 10 FROM alpine:latest 11 12 RUN mkdir /etc/eru/ 13 LABEL ERU=1 14 RUN apk --no-cache add libcurl libssh2 && rm -rf /var/cache/apk/* 15 COPY --from=BUILD /go/src/github.com/projecteru2/core/eru-core /usr/bin/eru-core 16 COPY --from=BUILD /go/src/github.com/projecteru2/core/core.yaml.sample /etc/eru/core.yaml.sample