mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-02 11:56:02 +02:00
- Add Docker Hub hooks to set up build environment - Include qemu-static binaries for AMD64 compatibility
22 lines
No EOL
605 B
Text
22 lines
No EOL
605 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
|
|
RUN touch /config.yaml
|
|
|
|
FROM arm32v6/alpine
|
|
WORKDIR /pomerium
|
|
COPY --from=multiarch/qemu-user-static /usr/bin/qemu-arm-static /usr/bin/
|
|
RUN apk --no-cache add ca-certificates
|
|
COPY --from=build /go/src/github.com/pomerium/pomerium/bin/* /bin/
|
|
COPY --from=build /config.yaml /pomerium/config.yaml
|
|
ENTRYPOINT [ "/bin/pomerium" ]
|
|
CMD ["-config","/pomerium/config.yaml"] |