From e8997179737773e907fc54bd761116435ea82776 Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Mon, 7 Aug 2023 15:00:05 -0600 Subject: [PATCH] add user --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a0d308a..8298abf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,7 +71,10 @@ WORKDIR /app COPY --from=builder /app/build/libs/nshmp-haz.jar . COPY scripts scripts -RUN yum install -y jq \ - && echo "{}" > "${CONFIG_FILE}" +USER root +RUN yum install -y jq +USER usgs-user + +RUN echo "{}" > "${CONFIG_FILE}" ENTRYPOINT [ "bash", "scripts/docker-entrypoint.sh" ] -- GitLab