fix: docker build and prisma orm database push

This commit is contained in:
Manuel
2023-08-29 21:19:36 +02:00
parent ab2e827270
commit aee541b6dc
3 changed files with 6 additions and 3 deletions

View File

@@ -1,8 +1,6 @@
FROM node:20-alpine
WORKDIR /app
RUN npm i -g prisma
ENV NEXT_TELEMETRY_DISABLED 1
ENV NODE_ENV production
ENV NODE_OPTIONS '--no-experimental-fetch'
@@ -10,6 +8,7 @@ ENV NODE_OPTIONS '--no-experimental-fetch'
COPY next.config.js ./
COPY public ./public
COPY package.json ./package.json
COPY yarn.lock ./yarn.lock
# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
@@ -20,6 +19,9 @@ COPY prisma/schema.prisma prisma/schema.prisma
COPY ./scripts/run.sh ./scripts/run.sh
RUN yarn global add prisma
RUN which prisma
EXPOSE 7575
ENV PORT 7575