Skip to content

Instantly share code, notes, and snippets.

@mraaroncruz
Forked from treeder/Dockerfile
Created Feb 21, 2018
Embed
What would you like to do?
multi-stage build
# 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