mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-07-24 03:17:32 +00:00
fix: remove docker staged build
This commit is contained in:
parent
26c9a7c721
commit
68d9fb5659
1 changed files with 1 additions and 19 deletions
20
Dockerfile
20
Dockerfile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue