Prepare for the actions release.

This commit is contained in:
2021-05-09 12:52:06 +01:00
parent a98a930fa1
commit 79545e4331
2 changed files with 18 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1.2.1-labs
FROM golang:1-alpine as baseimg
RUN apk add make
WORKDIR /go/src/app
ENV GO111MODULE=on CGO_ENABLED=1 GOOS=linux
COPY . /go/src/app/
RUN make
FROM alpine:latest
RUN apk add --no-cache ca-certificates
WORKDIR /go/src/app
COPY --from=baseimg /go/src/app/semver-gen .
COPY --from=baseimg /go/src/app/config-release.yaml config.yaml
COPY entrypoint.sh entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]