dockerfile for goreleaser 1.20 (#188)
This commit is contained in:
parent
8031bd8a6b
commit
0b0bbc4bf9
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ ENV CGO_ENABLED=0
|
|||
RUN mkdir -p /sshpiperd/plugins
|
||||
WORKDIR /src
|
||||
RUN --mount=target=/src,type=bind,source=. --mount=type=cache,target=/root/.cache/go-build if [ "$EXTERNAL" = "1" ]; then cp sshpiperd /sshpiperd; else go build -o /sshpiperd -ldflags "-X main.mainver=$VER" ./cmd/... ; fi
|
||||
RUN --mount=target=/src,type=bind,source=. --mount=type=cache,target=/root/.cache/go-build if [ "$EXTERNAL" = "1" ]; then cp * /sshpiperd/plugins; rm /sshpiperd/plugins/Dockerfile; rm /sshpiperd/plugins/entrypoint.sh; rm /sshpiperd/plugins/sshpiperd ; else go build -o /sshpiperd/plugins -tags "$BUILDTAGS" ./plugin/...; fi
|
||||
RUN --mount=target=/src,type=bind,source=. --mount=type=cache,target=/root/.cache/go-build if [ "$EXTERNAL" = "1" ]; then cp -r plugins /sshpiperd ; else go build -o /sshpiperd/plugins -tags "$BUILDTAGS" ./plugin/...; fi
|
||||
ADD entrypoint.sh /sshpiperd
|
||||
|
||||
FROM busybox
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue