mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 02:16:28 +02:00
14 lines
319 B
Docker
14 lines
319 B
Docker
FROM golang:alpine as build
|
|
RUN apk --update --no-cache add ca-certificates git make
|
|
ENV CGO_ENABLED=0
|
|
ENV GO111MODULE=on
|
|
|
|
WORKDIR /go/src/github.com/pomerium/pomerium
|
|
COPY . .
|
|
|
|
RUN make
|
|
|
|
FROM scratch
|
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
WORKDIR /pomerium
|
|
COPY --from=build /bin/* /bin/
|