nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests |Archive

commit db8dea89a0fcda565127e0204f19fca848b460ef
parent 60dc57f10d5298376786317650072afbb57a7721
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Thu, 18 Jul 2024 09:55:48 +0200

feat(updatecli): add npm

Diffstat:
Mdocker/docker-updatecli/Dockerfile | 18++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/docker/docker-updatecli/Dockerfile b/docker/docker-updatecli/Dockerfile @@ -1,16 +1,14 @@ # https://github.com/updatecli/updatecli/blob/main/Dockerfile -FROM ghcr.io/updatecli/updatecli:latest as builder +FROM ghcr.io/updatecli/updatecli:v0.80.0-arm64 as builder -# updatecli with stable-slim has no top, expected error: -# 'java.io.IOException: Failed to run top' -FROM debian:stable -COPY --from=builder /usr/local/bin/updatecli /usr/local/bin/updatecli - -RUN useradd -d /home/updatecli -U -u 1000 -m updatecli +FROM docker.io/alpine:latest -USER updatecli +RUN mkdir /udpatecli +WORKDIR /updatecli -WORKDIR /home/updatecli +# install npm +RUN apk update && apk add --no-cache git npm +COPY --from=builder /usr/local/bin/updatecli /usr/local/bin/updatecli -ENTRYPOINT [ "/usr/local/bin/updatecli" ] +ENTRYPOINT ["/usr/local/bin/updatecli"] CMD ["help"]