Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wangrui06 committed Apr 8, 2024
1 parent e345405 commit 9c461b6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Nuxt 3 builder
FROM node:lts as builder
FROM node:lts-alpine as builder

WORKDIR /app

Expand All @@ -17,15 +17,14 @@ RUN npx prisma generate
RUN npm run build

# Nuxt 3 production
FROM node:lts
FROM node:lts-alpine

WORKDIR /app

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

RUN npm init -y
RUN npm install prisma --save-dev
RUN npm install -g prisma

# 运行数据库迁移
RUN npx prisma migrate deploy
Expand Down

0 comments on commit 9c461b6

Please sign in to comment.