Skip to content

Commit f906345

Browse files
committed
WIP building working
1 parent 493d45f commit f906345

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

Dockerfile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ COPY package.json pnpm-lock.yaml ./
1717
COPY run-jiti.js ./
1818
COPY src/features/build-info/script-to-generate-json.ts src/features/build-info/build-info.gen.json ./src/features/build-info/
1919
COPY prisma/schema.prisma ./prisma/
20-
RUN pnpm install --frozen-lockfile --prod=false
20+
RUN pnpm install --frozen-lockfile
2121

2222
# copy source
2323
COPY . .
@@ -34,20 +34,17 @@ FROM node:22-alpine AS runtime
3434
WORKDIR /app
3535

3636
# install pnpm
37-
RUN npm install -g pnpm
38-
RUN npm install -g npm-run-all
37+
RUN npm install -g pnpm npm-run-all
38+
39+
COPY .env ./
40+
3941

4042

4143
## copy output build and package.json from builder
4244
COPY --from=builder /app/.output ./.output
4345
COPY --from=builder /app/package.json ./package.json
44-
COPY --from=builder /app/src/features/build-info/build-info.gen.json ./src/features/build-info/build-info.gen.json
45-
COPY --from=builder /app/src/features/build-info/script-to-generate-json.ts ./src/features/build-info/script-to-generate-json.ts
46-
47-
# install only production dependencies
48-
49-
50-
RUN pnpm install --prod
46+
COPY --from=builder /app/pnpm-lock.yaml ./pnpm-lock.yaml
47+
COPY --from=builder /app/node_modules ./node_modules
5148

5249
ENV NODE_ENV=production
5350

0 commit comments

Comments
 (0)