blob: acea2eb9aceb1b4a0377ec80f69cabae9e897b8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
FROM golang:1.15-alpine AS builder
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"]
|