File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ COPY --from=builder $DIR/out/json/ .
1919COPY --from=builder $DIR/out/yarn.lock ./yarn.lock
2020COPY --from=builder $DIR/turbo.json ./turbo.json
2121COPY --from=builder $DIR/packages ./packages
22+ COPY --from=builder $DIR/apps/api/prisma ./prisma
2223RUN yarn install --ignore-scripts --frozen-lockfile --network-timeout 600000
2324
2425# Running build using turbo
@@ -39,8 +40,12 @@ ARG DIR=/usr/src/app
3940ENV NODE_ENV production
4041WORKDIR $DIR
4142RUN apk add --no-cache dumb-init=1.2.5-r3
43+ COPY --chown=node:node --from=sourcer $DIR/apps/api/package.json ./package.json
4244COPY --chown=node:node --from=sourcer $DIR/apps/api/dist ./dist
4345COPY --chown=node:node --from=sourcer $DIR/node_modules $DIR/node_modules
46+ COPY --chown=node:node --from=sourcer $DIR/prisma ./prisma
47+ COPY --chown=node:node --from=sourcer $DIR/apps/api/migrate.sh ./migrate.sh
48+ COPY --chown=node:node --from=sourcer $DIR/apps/api/ensureDb.js ./ensureDb.js
4449ENTRYPOINT ["/usr/bin/dumb-init" , "--" ]
4550CMD ["node" , "dist/main.js" ]
4651EXPOSE 3000
You can’t perform that action at this time.
0 commit comments