Change Dockerfile build order
This commit is contained in:
parent
76a276fb99
commit
674b66ff19
|
@ -1,18 +1,14 @@
|
|||
FROM node
|
||||
WORKDIR /app
|
||||
|
||||
ARG DATABASE_URL=${DATABASE_URL}
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run prisma-deploy
|
||||
|
||||
RUN npm run prisma-generate
|
||||
|
||||
RUN npm run build
|
||||
|
||||
CMD npm start
|
||||
CMD npm run prisma-deploy && npm start
|
Loading…
Reference in New Issue
Block a user