mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 02:16:28 +02:00
17 lines
378 B
Text
17 lines
378 B
Text
FROM golang:latest as build
|
|
WORKDIR /go/src/github.com/pomerium/pomerium
|
|
ENV CGO_ENABLED=0
|
|
ENV GO111MODULE=on
|
|
ENV GOARCH=arm
|
|
ENV GOARM=6
|
|
# 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"]
|