mirror of
https://github.com/RealKai42/qwerty-learner.git
synced 2026-04-04 22:09:04 +08:00
30 lines
641 B
YAML
30 lines
641 B
YAML
version: '3'
|
|
|
|
services:
|
|
qwertylearner:
|
|
image: 'node:16'
|
|
user: 'root'
|
|
working_dir: '/app/qwerty-learner'
|
|
ports: [8990:3000]
|
|
volumes:
|
|
- $PWD/:/app/qwerty-learner
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
echo 'run the bash command..'
|
|
npm -v
|
|
npm config set registry https://registry.npm.taobao.org
|
|
npm install -g yarn
|
|
cd /app/qwerty-learner
|
|
yarn install
|
|
yarn build
|
|
nohup yarn start &
|
|
echo 'success.. start..'
|
|
pwd
|
|
echo '查看输出:...'
|
|
cat nohup.out
|
|
tail -f /dev/null
|
|
tty: true
|
|
stdin_open: true
|