[mod]
This commit is contained in:
parent
4198154d8d
commit
3be734f6fc
10
Dockerfile
10
Dockerfile
@ -1,4 +1,7 @@
|
||||
FROM node
|
||||
# sudo docker build -t guesswhoiams .
|
||||
# sudo docker exec -it 2e8e3995aa52 /bin/bash
|
||||
|
||||
FROM node:19.4.0
|
||||
|
||||
# 使用淘宝 NPM 镜像(国内机器构建推荐启用)
|
||||
# RUN npm config set registry https://registry.npm.taobao.org/
|
||||
@ -24,7 +27,8 @@ RUN rm -rf /app \
|
||||
# ENV
|
||||
ENV NODE_ENV production
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 3003
|
||||
|
||||
WORKDIR /app
|
||||
CMD node index.js
|
||||
# 指定啟動container後執行命令
|
||||
CMD [ "npm", "start" ]
|
@ -4,6 +4,7 @@
|
||||
"main": "index.js",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "npm run dev",
|
||||
"dev": "tsrpc-cli dev",
|
||||
"debug": "nodemon --exec \"node --require ts-node/register --inspect=127.0.0.1:9229 src/index.ts\"",
|
||||
"build": "tsrpc-cli build",
|
||||
|
Loading…
Reference in New Issue
Block a user