Skip to content

Commit baf1e78

Browse files
committed
fix: generate prisma types before building
1 parent 4d72f82 commit baf1e78

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,26 @@ COPY package.json pnpm-lock.yaml* ./
55
RUN corepack enable && pnpm install --frozen-lockfile
66

77
COPY . .
8+
RUN pnpm prisma:generate
89
RUN pnpm build
910

1011
FROM node:22-slim
1112
WORKDIR /app
13+
ENV NODE_ENV=production
1214
ENV PORT=3000
13-
# TODO: see if AWS needs the HOST env
15+
# TODO: check if AWS needs this env variable
1416
# ENV HOST=0.0.0.0
1517
ENV HOSTNAME=0.0.0.0
1618
EXPOSE 3000
1719

1820
RUN apt-get update -y && apt-get install -y --no-install-recommends openssl ca-certificates \
19-
&& rm -rf /var/lib/apt/lists/*;
21+
&& rm -rf /var/lib/apt/lists/*
2022

21-
RUN npm install -g prisma@^6.15.0
23+
RUN npm install -g prisma@6.15.0
2224

2325
COPY --from=builder /app/.next/standalone ./
2426
COPY --from=builder /app/.next/static ./.next/static
25-
# TODO: uncomment once we add images to /public
27+
# TODO: uncomment when we add public directory
2628
# COPY --from=builder /app/public ./public
2729

2830
COPY --from=builder /app/prisma ./prisma

0 commit comments

Comments
 (0)