-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: build Dockerfile with goreleaser
- Loading branch information
Showing
2 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
# Build stage | ||
FROM golang:1.22.2@sha256:c4fb952e712efd8f787bcd8e53fd66d1d83b7dc26adabc218e9eac1dbf776bdf AS builder | ||
|
||
WORKDIR /go/src | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
ENV CGO_ENABLED=0 | ||
RUN go build -o /go/bin/ctfd-setup cmd/ctfd-setup/main.go | ||
|
||
|
||
|
||
# Prod stage | ||
FROM scratch | ||
COPY --from=builder /go/bin/ctfd-setup /ctfd-setup | ||
COPY ctfd-setup / | ||
ENTRYPOINT [ "/ctfd-setup" ] |