Skip to content

Commit 6ac0043

Browse files
committed
fix: docker build postcss
1 parent 8a8ef7d commit 6ac0043

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@ FROM node:25-alpine AS builder
1919
WORKDIR /app
2020
COPY . .
2121

22-
# Set NODE_ENV to production for build
23-
ENV NODE_ENV=production
24-
2522
# Accept build arguments for NEXT_PUBLIC environment variables
2623
ARG NEXT_PUBLIC_APP_URL
2724
ENV NEXT_PUBLIC_APP_URL=$NEXT_PUBLIC_APP_URL
2825

26+
# Install all deps (including devDependencies needed for the build)
2927
RUN yarn
3028

31-
RUN yarn build
29+
# Set NODE_ENV to production only for the build step
30+
RUN NODE_ENV=production yarn build
3231

3332
# If using npm comment out above and use below instead
3433
# RUN npm run build

0 commit comments

Comments
 (0)