fix: docker build and prisma orm database push
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user