diff --git a/Dockerfile b/Dockerfile index 83f7c79..1bd0888 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:21-bookworm +FROM node:20-bookworm ARG SRV_UID="1000" ARG SRV_GID="100" @@ -14,10 +14,10 @@ RUN apt-get update -y && apt-get install -y jq $SRV_APT_GET_INSTALL \ RUN id $SRV_UID || useradd -s /bin/bash -d /app -u $SRV_UID -g $SRV_GID srv -COPY ./docker-entrypoint.sh /docker-entrypoint.sh - RUN npm install -g ember-cli@5.6.0 npm@10.4.0 +COPY ./docker-entrypoint.sh /docker-entrypoint.sh + USER $SRV_UID:$SRV_GID ENV PATH "/app/node_modules/.bin:$PATH" diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index a9fb872..839b791 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,6 +2,17 @@ export IP=$( hostname -i ) +cat <