Skip to content

Instantly share code, notes, and snippets.

@andriisoldatenko
Created July 14, 2019 17:51
Show Gist options
  • Save andriisoldatenko/061f3f075d1aa6d93569bbbf0d60e408 to your computer and use it in GitHub Desktop.
Save andriisoldatenko/061f3f075d1aa6d93569bbbf0d60e408 to your computer and use it in GitHub Desktop.
FROM golang AS builder
WORKDIR /src
RUN go get -u github.com/go-delve/delve/cmd/dlv
ADD . /src
RUN cd /src && go build -o goapp
FROM alpine
WORKDIR /app
COPY --from=builder /src/goapp /app/
ENTRYPOINT ./goapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment