Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 357 Bytes
FROM golang:1.10.3-alpine3.7 AS build
RUN apk --no-cache add clang gcc g++ make git ca-certificates
RUN go get -u -v golang.org/x/vgo
WORKDIR /go/src/github.com/tinrab/graphql-realtime-chat
COPY go.mod go.sum main.go ./
COPY server server
RUN vgo build -o /go/bin/app .
FROM alpine:3.7
WORKDIR /usr/bin
COPY --from=build /go/bin .
EXPOSE 8080
CMD ["app"]