File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,24 +5,26 @@ COPY package.json pnpm-lock.yaml* ./
55RUN corepack enable && pnpm install --frozen-lockfile
66
77COPY . .
8+ RUN pnpm prisma:generate
89RUN pnpm build
910
1011FROM node:22-slim
1112WORKDIR /app
13+ ENV NODE_ENV=production
1214ENV 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
1517ENV HOSTNAME=0.0.0.0
1618EXPOSE 3000
1719
1820RUN 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
2325COPY --from=builder /app/.next/standalone ./
2426COPY --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
2830COPY --from=builder /app/prisma ./prisma
You can’t perform that action at this time.
0 commit comments