Skip to content

Instantly share code, notes, and snippets.

@fourswordsio
Last active December 8, 2019 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fourswordsio/b192d4cfaccf31a359b7e1564bbf7736 to your computer and use it in GitHub Desktop.
Save fourswordsio/b192d4cfaccf31a359b7e1564bbf7736 to your computer and use it in GitHub Desktop.
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