We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
我的实践: 启动参数为
"scripts": { "start": "egg-scripts start --workers=1 --title=egg-server-some-server" }
docker-compose.yml大概是这样:
docker-compose.yml
version: '3' services: some-server: image: node:10.16.0 ports: - "7001" volumes: - /etc/localtime:/etc/localtime:ro - .:/usr/src/app working_dir: /usr/src/app command: sh -c "npm run tsc && npm start" # 或者 # command: npm start logging: driver: json-file options: max-file: '3' max-size: 10m restart: always
主要就是不要后台启动就行了,其他没啥了,标准的Node服务。
Sorry, something went wrong.
#1431
可以参考这个,docker 部署相对简单,但涉及一些基础知识,需要自行补充。
這是我使用 eggjs + typescript + docker 的教學,有問題可以隨時問我喔 =]
Dockerize a Typescript App in 15 mins: https://itnext.io/dockerize-a-typescript-app-in-15-mins-a0e8c1e904b3
ts项目我添加了 "tsc": "tsc", "start": "npm run tsc && egg-scripts start --title=egg-server-service" 这样docker容器会报错识别不到tsc,请问有大佬知道怎么解决吗
thonatos
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: