super-graph/Dockerfile

15 lines
351 B
Docker
Raw Normal View History

2019-03-24 14:57:29 +01:00
FROM golang:1.12-stretch as builder
COPY . /app
WORKDIR /app
ENV GO111MODULE=on
RUN CGO_ENABLED=0 GOOS=linux go build -o service
RUN go get github.com/pilu/fresh
#second stage
FROM alpine:latest
WORKDIR /app
RUN apk add --no-cache tzdata
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app .
CMD ./service