Skip to content

Commit 5290331

Browse files
the env var with app version was not exposed in the final docker layer
1 parent ce04bec commit 5290331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ ARG SENTRY_PROJECT
1010
ENV SENTRY_PROJECT=$SENTRY_PROJECT
1111
ARG SENTRY_RELEASE
1212
ENV SENTRY_RELEASE=$SENTRY_RELEASE
13-
ARG APP_VERSION
14-
ENV APP_VERSION=$APP_VERSION
1513

1614
RUN apt-get update
1715
RUN apt-get -y install ca-certificates
@@ -27,6 +25,8 @@ RUN pnpm --filter=app-builder --prod deploy /prod/app-builder
2725
FROM gcr.io/distroless/nodejs22-debian12 AS app-builder
2826
ENV NODE_ENV=production
2927
ENV PORT=${PORT:-8080}
28+
ARG APP_VERSION
29+
ENV APP_VERSION=$APP_VERSION
3030
COPY --from=build /prod/app-builder/node_modules /prod/app-builder/node_modules
3131
COPY --from=build /prod/app-builder/build /prod/app-builder/build
3232
WORKDIR /prod/app-builder

0 commit comments

Comments
 (0)