Adjust package.json and Dockerfile

This commit is contained in:
Douglas Barone 2023-06-21 15:16:56 -04:00
parent da28e97d86
commit 60ef813292
3 changed files with 4 additions and 1 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules

View File

@ -8,6 +8,8 @@ COPY . .
RUN npx prisma generate
RUN cd web && yarn install && cd ..
RUN npm run build
EXPOSE 3000

View File

@ -7,7 +7,7 @@
"scripts": {
"clean": "rimraf ./dist ./public",
"build:server": "npm run clean && tsc",
"build:web": "cd web && npm run build",
"build:web": "cd web && yarn run build",
"build": "npm run build:server && npm run build:web",
"start": "NODE_ENV=production node dist",
"dev": "nodemon --ext js,ts,mts,mjs,json,prisma --exec \"tsx src/index.ts\"",