super-graph/Dockerfile
Vikram Rangnekar b9d38a5e9d First commit
2019-03-24 09:57:29 -04:00

15 lines
351 B
Docker

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