mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-28 18:06:34 +02:00
Bumps node from `fd01154` to `f3299f1`. --- updated-dependencies: - dependency-name: node dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38 lines
1.1 KiB
Docker
38 lines
1.1 KiB
Docker
FROM node:lts-bookworm@sha256:f3299f16246c71ab8b304d6745bb4059fa9283e8d025972e28436a9f9b36ed24 as ui
|
|
WORKDIR /build
|
|
|
|
COPY .git ./.git
|
|
COPY Makefile ./Makefile
|
|
|
|
# download yarn dependencies
|
|
COPY ui/yarn.lock ./ui/yarn.lock
|
|
COPY ui/package.json ./ui/package.json
|
|
RUN make yarn
|
|
|
|
# build ui
|
|
COPY ./ui/ ./ui/
|
|
RUN make build-ui
|
|
|
|
FROM golang:1.22.0-bookworm@sha256:925fe3fa28ba428cf67a7947ae838f8a1523117b40e3e6b5106c378e3f97fa29 as build
|
|
WORKDIR /go/src/github.com/pomerium/pomerium
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y --no-install-recommends install zip
|
|
|
|
# cache dependency downloads
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
COPY --from=ui /build/ui/dist ./ui/dist
|
|
|
|
# build
|
|
RUN make build-go NAME=pomerium
|
|
RUN touch /config.yaml
|
|
|
|
FROM gcr.io/distroless/base-debian12:debug@sha256:1d91d5f201f4be1ab11bdbcd3ef9d1a42bdfd29863bb007eba11eaa55172f85d
|
|
ENV AUTOCERT_DIR /data/autocert
|
|
WORKDIR /pomerium
|
|
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"]
|