parent
a7b8a0abae
commit
e8ec3f6b26
@ -6,4 +6,7 @@ RUN npm install --silent && mv node_modules ../
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN chown -R node /usr/src/app
|
RUN chown -R node /usr/src/app
|
||||||
USER node
|
USER node
|
||||||
|
|
||||||
|
RUN npx tsc
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "tsc && node dist/index.js",
|
"start": "node dist/index.js",
|
||||||
"tsc": "tsc -w",
|
"tsc": "tsc -w",
|
||||||
"dev": "nodemon dist/index.js"
|
"dev": "nodemon dist/index.js"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user