mirror of
https://github.com/RealKai42/qwerty-learner.git
synced 2026-04-05 06:19:08 +08:00
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:
@@ -21,8 +21,8 @@ RUN yarn install
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 5173
|
||||
|
||||
CMD yarn start
|
||||
CMD yarn start --host=0.0.0.0
|
||||
|
||||
|
||||
|
||||
@@ -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 '查看输出:...'
|
||||
|
||||
Reference in New Issue
Block a user