File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,15 @@ COPY . .
2222
2323RUN npm run migrate:generate
2424RUN npm run build
25+ RUN npm run build:seed
2526
2627FROM node:22
2728WORKDIR /opt/app
2829
2930COPY --from=build /opt/app/dist ./dist
3031COPY --from=build /opt/app/frontend ./frontend
31- COPY --from=build /opt/app/prisma ./prisma
32+ COPY --from=build /opt/app/prisma/schema.prisma ./prisma/
33+ COPY --from=build /opt/app/prisma/migrations ./prisma/migrations
3234
3335COPY configs /var/lib/remnawave/configs
3436COPY package*.json ./
Original file line number Diff line number Diff line change 1515 "url" : " https://github.com/remnawave/backend/issues"
1616 },
1717 "prisma" : {
18- "seed" : " node -r ts-node/register prisma/seed/ config.seed.ts "
18+ "seed" : " node dist/ prisma/config.seed.js "
1919 },
2020 "scripts" : {
2121 "build" : " nest build" ,
22+ "build:seed" : " tsc -p prisma/tsconfig.seed.json" ,
2223 "format" : " prettier --write \" src/**/*.ts\" \" test/**/*.ts\" " ,
2324 "start" : " nest start" ,
2425 "start:dev" : " NODE_ENV=development nest start --watch" ,
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ../tsconfig.json" ,
3+ "compilerOptions" : {
4+ "outDir" : " ../dist/prisma" ,
5+ "module" : " commonjs"
6+ },
7+ "include" : [
8+ " seed/**/*"
9+ ]
10+ }
You can’t perform that action at this time.
0 commit comments