Last active
December 8, 2019 18:18
-
-
Save fourswordsio/b192d4cfaccf31a359b7e1564bbf7736 to your computer and use it in GitHub Desktop.
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 golang:1.12-alpine as builder | |
ENV GO111MODULE=on | |
RUN apk add --no-cache make curl git gcc musl-dev linux-headers | |
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | |
ADD . /go/src/github.com/fourswordsio/bridges | |
RUN cd /go/src/github.com/fourswordsio/bridges/examples/gasstation && go get && go build -o gasstation | |
# Copy into a second stage container | |
FROM alpine:latest | |
RUN apk add --no-cache ca-certificates | |
COPY --from=builder /go/src/github.com/fourswordsio/bridges/examples/gasstation/gasstation/ /usr/local/bin/ | |
ENTRYPOINT ["gasstation"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment