2020-09-22 14:09:54 -04:00
|
|
|
FROM golang:1.15-alpine AS builder
|
2017-06-26 11:36:29 -04:00
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
RUN go-wrapper download
|
|
|
|
RUN go build -v
|
|
|
|
|
|
|
|
FROM alpine:3.5
|
|
|
|
|
|
|
|
# We'll likely need to add SSL root certificates
|
|
|
|
RUN apk --no-cache add ca-certificates
|
|
|
|
|
|
|
|
WORKDIR /usr/local/bin
|
|
|
|
|
|
|
|
COPY --from=builder /usr/src/app/app .
|
|
|
|
CMD ["./app"]
|