Skip to content

Commit dcf9659

Browse files
committed
fix: put NODE_ENV next to ARG
1 parent 49379c7 commit dcf9659

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/updater/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ COPY . .
1616
FROM base AS build
1717

1818
ARG NODE_ENV=production
19+
ENV NODE_ENV=$NODE_ENV
1920
# Hoisted mode so pnpm physically copies platform-specific optional binaries
2021
# instead of leaving them as symlinks that break across the cache-mount boundary.
2122
RUN printf '\nnodeLinker: hoisted\n' >> pnpm-workspace.yaml
2223
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm i --frozen-lockfile
2324
RUN pnpm build
2425

25-
ENV NODE_ENV=$NODE_ENV
2626
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm --filter @qnaplus/updater --prod deploy out \
2727
&& mv /app/.npmrc out \
2828
&& mv /app/services/start.sh out

0 commit comments

Comments
 (0)