mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
18 lines
423 B
Docker
18 lines
423 B
Docker
FROM node AS build
|
|
RUN useradd --create-home kuma
|
|
USER kuma
|
|
WORKDIR /home/kuma
|
|
ARG TARGETPLATFORM
|
|
COPY --chown=kuma:kuma ./build/ ./build/
|
|
COPY --chown=kuma:kuma build.js build.js
|
|
RUN node build.js $TARGETPLATFORM
|
|
|
|
FROM debian:bookworm-slim AS release
|
|
RUN useradd --create-home kuma
|
|
USER kuma
|
|
WORKDIR /home/kuma
|
|
COPY --from=build /home/kuma/uptime-kuma-push ./uptime-kuma-push
|
|
|
|
ENTRYPOINT ["/home/kuma/uptime-kuma-push"]
|
|
|
|
|