Skip to content

Commit 7b68a7e

Browse files
committed
refactor(docker): adjust landing app Dockerfile to refine module copying and improve build command
1 parent 34024f3 commit 7b68a7e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/landing/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ FROM oven/bun:1.3.9 AS builder
1616
WORKDIR /app
1717

1818
COPY --from=deps /app/node_modules ./node_modules
19+
COPY --from=deps /app/apps/landing/node_modules ./apps/landing/node_modules
1920
COPY apps/landing ./apps/landing
20-
COPY package.json ./
21+
COPY package.json tsconfig.base.json ./
2122

2223
ENV NODE_ENV=production
2324
ENV NEXT_TELEMETRY_DISABLED=1
2425

25-
ENV PATH="/app/node_modules/.bin:$PATH"
26-
RUN cd apps/landing && next build
26+
RUN cd apps/landing && ./node_modules/.bin/next build
2727

2828
FROM oven/bun:1.3.9 AS runner
2929
WORKDIR /app

0 commit comments

Comments
 (0)