mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 10:26:29 +02:00
Create Dockerfile for arm64 - Fixes #125
This commit is contained in:
parent
382f9de876
commit
d1042d8c8b
1 changed files with 16 additions and 0 deletions
16
Dockerfile.arm64v8
Normal file
16
Dockerfile.arm64v8
Normal file
|
@ -0,0 +1,16 @@
|
|||
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"]
|
Loading…
Add table
Reference in a new issue