mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-28 18:06:34 +02:00
27 lines
752 B
Text
27 lines
752 B
Text
FROM golang:latest as build
|
|
WORKDIR /go/src/github.com/pomerium/pomerium
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y --no-install-recommends install zip
|
|
|
|
# cache depedency downloads
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
|
|
# build
|
|
RUN make build-deps
|
|
RUN make build-debug NAME=pomerium
|
|
RUN touch /config.yaml
|
|
RUN go get github.com/go-delve/delve/cmd/dlv
|
|
|
|
FROM alpine:latest
|
|
ENV AUTOCERT_DIR /data/autocert
|
|
WORKDIR /pomerium
|
|
RUN apk add --no-cache ca-certificates libc6-compat gcompat
|
|
COPY --from=build /go/src/github.com/pomerium/pomerium/bin/* /bin/
|
|
COPY --from=build /config.yaml /pomerium/config.yaml
|
|
COPY --from=build /go/bin/dlv /bin
|
|
COPY scripts/debug-entrypoint.sh /
|
|
ENTRYPOINT [ "/bin/pomerium" ]
|
|
CMD ["-config","/pomerium/config.yaml"]
|