diff --git a/Dockerfile b/Dockerfile index 8f00060..04f24ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,10 @@ COPY --from=deps /app/node_modules ./node_modules COPY . . ENV NEXT_TELEMETRY_DISABLED 1 +# Add the commit hash +ARG GIT_REV +ENV GIT_REV ${GIT_REV} + # Build the app RUN pnpm run build @@ -24,10 +28,6 @@ WORKDIR /app ENV NODE_ENV production ENV NEXT_TELEMETRY_DISABLED 1 -# Add the commit hash -ARG GIT_REV -ENV GIT_REV ${GIT_REV} - RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs