Created
February 6, 2025 12:53
-
-
Save microwaves/be69c9b52df54301045eda9f955b2079 to your computer and use it in GitHub Desktop.
builder_image_example
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
FROM golang:latest as builder | |
WORKDIR /go/src/github.com/signavio/pimba | |
ADD . . | |
RUN go get && CGO_ENABLED=0 go build -o /pimba -a -tags netgo -ldflags '-w' main.go | |
FROM scratch | |
COPY --from=builder /pimba /pimba | |
ENTRYPOINT ["/pimba"] | |
EXPOSE 8080 | |
CMD ["api", "--storage", "/var/www", "--secret", "$JWT_SECRET"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment