Adjust package.json and Dockerfile
This commit is contained in:
parent
da28e97d86
commit
60ef813292
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
|||
node_modules
|
|
@ -8,6 +8,8 @@ COPY . .
|
|||
|
||||
RUN npx prisma generate
|
||||
|
||||
RUN cd web && yarn install && cd ..
|
||||
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 3000
|
||||
|
|
|
@ -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\"",
|
||||
|
|
Loading…
Reference in New Issue
Block a user