Skip to content

Instantly share code, notes, and snippets.

@ayosec
Created May 16, 2018 02:47
Show Gist options
  • Save ayosec/d261ce58d2b30a0cdb5ce5c89e207614 to your computer and use it in GitHub Desktop.
Save ayosec/d261ce58d2b30a0cdb5ce5c89e207614 to your computer and use it in GitHub Desktop.
FROM golang:1.10-alpine
COPY . /go/src/pathtocode
WORKDIR /go/src/pathtocode/
RUN go build main.go
FROM alpine:3.7
RUN apk add --no-cache ca-certificates
COPY --from=0 /go/src/pathtocode/main .
CMD ["./main"]
# vim ft=Dockerfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment