-
-
Save mraaroncruz/b685e59f45f384673a4609a9c5707486 to your computer and use it in GitHub Desktop.
multi-stage 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
# build stage | |
FROM golang:alpine AS build-env | |
ADD . /src | |
RUN cd /src && go build -o goapp | |
# final stage | |
FROM alpine | |
WORKDIR /app | |
COPY --from=build-env /src/goapp /app/ | |
ENTRYPOINT ./goapp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment