File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change 1- FROM alpine:latest as alpine
1+ FROM alpine:latest AS alpine
22
3- RUN apk add -U --no-cache ca-certificates
3+ # We need git to automatically get the changes of a deployment
4+ RUN apk add -U --no-cache ca-certificates git
45
5- # Build a statically linked git binary
6- ENV GIT_VERSION "v2.30.0"
7- WORKDIR /tmp/git
8- RUN apk add -U --no-cache git alpine-sdk autoconf automake zlib-dev zlib-static zlib
9- RUN \
10- git clone --depth=1 git://github.com/git/git -b $GIT_VERSION /tmp/git && \
11- make configure && \
12- ./configure prefix=/tmp CFLAGS="${CFLAGS} -static" && \
13- make install NO_TCLTK="YesPlease"
6+ # See https://goreleaser.com/customization/dockers_v2/#how-it-works
7+ ARG TARGETPLATFORM
148
15- FROM scratch
169WORKDIR /workdir
17- COPY pulse-event-cli /bin/
18- COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
19- COPY --from=alpine /tmp/bin/git /bin/git
10+ COPY $TARGETPLATFORM/pulse-event-cli /bin/
2011ENTRYPOINT ["pulse-event-cli" ]
You can’t perform that action at this time.
0 commit comments