add --host option to yarn start and set port expose (#421)

Co-authored-by: nico <oncwnuADBg_x7jBgI_2JUsyhR4Yc@git.weixin.qq.com>
This commit is contained in:
Jianwei Zhang
2023-04-24 13:27:11 +08:00
committed by GitHub
parent 178dcf3600
commit 1e76d11d8a
2 changed files with 4 additions and 4 deletions

View File

@@ -21,8 +21,8 @@ RUN yarn install
COPY . .
EXPOSE 3000
EXPOSE 5173
CMD yarn start
CMD yarn start --host=0.0.0.0

View File

@@ -5,7 +5,7 @@ services:
image: 'node:16'
user: 'root'
working_dir: '/app/qwerty-learner'
ports: [8990:3000]
ports: [8990:5173]
volumes:
- $PWD/:/app/qwerty-learner
command:
@@ -19,7 +19,7 @@ services:
cd /app/qwerty-learner
yarn install
yarn build
nohup yarn start &
nohup yarn start --host=0.0.0.0 &
echo 'success.. start..'
pwd
echo '查看输出:...'