fix: remove docker staged build

This commit is contained in:
Manuel Vogel 2023-02-11 11:32:33 +01:00
parent 26c9a7c721
commit 68d9fb5659

View file

@ -1,28 +1,10 @@
##################
########## Builder
##################
FROM golang:1.19-alpine as builder
RUN apk add --no-cache make git
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN make build
##################
########## PROD
##################
FROM alpine
RUN apk add --no-cache git && \
mkdir /workdir && \
git config --global --add safe.directory /workdir
COPY --from=builder /build/git-chglog /usr/local/bin/git-chglog
COPY git-chglog /usr/local/bin/git-chglog
WORKDIR /workdir
RUN chmod +x /usr/local/bin/git-chglog