aboutsummaryrefslogblamecommitdiff
path: root/Dockerfile
blob: 5b059ddd1a5513ea9a0a92fd5851a6fba12489db (plain) (tree)
1
2
3
4
5
6



                                                                              

            






                                                                      
FROM golang:1.17.0-alpine3.14 as builder
ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
RUN apk update && apk add --no-cache ca-certificates && update-ca-certificates
WORKDIR /opt
COPY . /opt/
RUN ls /opt/
RUN go build .

FROM scratch 
COPY --from=builder /opt/bagage /
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
USER 1000:1000
ENTRYPOINT ["/bagage"]