mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-06 22:06:03 +02:00
16 lines
368 B
Text
16 lines
368 B
Text
FROM golang:latest as build
|
|
WORKDIR /go/src/github.com/pomerium/pomerium
|
|
ENV CGO_ENABLED=0
|
|
ENV GO111MODULE=on
|
|
ENV GOARCH=arm64
|
|
# cache depedency downloads
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
# build
|
|
RUN make build
|
|
|
|
FROM gcr.io/distroless/static
|
|
WORKDIR /pomerium
|
|
COPY --from=build /go/src/github.com/pomerium/pomerium/bin/* /bin/
|
|
CMD ["/bin/pomerium"]
|