1FROM golang:alpine AS builder
2
3WORKDIR /app
4
5COPY . .
6RUN go mod download
7
8COPY . .
9
10RUN CGO_ENABLED=0 go build -o test-app .
11
12FROM alpine:latest
13
14RUN apk --no-cache add ca-certificates
15
16WORKDIR /app/
17COPY --from=builder /app/test-app .
18
19ENTRYPOINT ["./test-app"]