Created
May 1, 2020 13:05
-
-
Save xphyr/693ebe644363ae694666b940094d1f6c to your computer and use it in GitHub Desktop.
Golang Docker build
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 docker.io/golang as john_builder | |
WORKDIR /opt/app-root | |
ADD . /opt/app-root | |
RUN CGO_ENABLED=0 GOOS=linux go build -o bin/4john | |
FROM docker.io/alpine:latest | |
COPY --from=john_builder /opt/app-root/bin/4john /usr/bin/4john | |
ENTRYPOINT [ "4john" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment