fix: prisma added to docker
This commit is contained in:
@@ -3,6 +3,7 @@ WORKDIR /app
|
|||||||
COPY package.json package-lock.json* ./
|
COPY package.json package-lock.json* ./
|
||||||
RUN npm install --include=dev
|
RUN npm install --include=dev
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN npx prisma generate
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:20 AS production
|
FROM node:20 AS production
|
||||||
@@ -12,6 +13,7 @@ COPY --from=builder /app/node_modules ./node_modules
|
|||||||
COPY --from=builder /app/.next ./.next
|
COPY --from=builder /app/.next ./.next
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
COPY --from=builder /app/messages ./messages
|
COPY --from=builder /app/messages ./messages
|
||||||
|
COPY --from=builder /app/prisma ./prisma
|
||||||
RUN npm prune --omit=dev
|
RUN npm prune --omit=dev
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["npm", "start", "--", "-p", "3000", "-H", "0.0.0.0"]
|
CMD ["npm", "start", "--", "-p", "3000", "-H", "0.0.0.0"]
|
||||||
|
|||||||
Reference in New Issue
Block a user