diff --git a/Dockerfile b/Dockerfile index be65593..6db7435 100644 --- a/Dockerfile +++ b/Dockerfile @@ -79,9 +79,9 @@ COPY --chown=nonroot:nonroot --from=pruner /srv /srv COPY --from=builder /usr/bin/tini /usr/bin/tini # Define the host and port to listen on. -ARG NODE_ENV=production PORT=3000 +ARG NODE_ENV=production HOST=0.0.0.0 PORT=3000 ENV PNPM_HOME="/pnpm" PATH="$PNPM_HOME:$PATH" -ENV NODE_ENV=$NODE_ENV HOST=0.0.0.0 PORT=$PORT +ENV NODE_ENV=$NODE_ENV HOST=$HOST PORT=$PORT ENV TINI_SUBREAPER=true WORKDIR /srv diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 56e4c20..499addb 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -80,8 +80,9 @@ COPY --chown=nonroot:nonroot --from=pruner /srv /srv COPY --from=builder /sbin/tini /sbin/tini # Define the host and port to listen on. -ARG NODE_ENV=production PORT=3000 -ENV NODE_ENV=$NODE_ENV HOST=0.0.0.0 PORT=$PORT +ARG NODE_ENV=production HOST=0.0.0.0 PORT=3000 +ENV PNPM_HOME="/pnpm" PATH="$PNPM_HOME:$PATH" +ENV NODE_ENV=$NODE_ENV HOST=$HOST PORT=$PORT ENV TINI_SUBREAPER=true USER nonroot:nonroot