add
This commit is contained in:
parent
c12e970c52
commit
0b5be9a97d
@ -14,13 +14,14 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
nodejs:
|
nodejs:
|
||||||
image: ${IMAGE_BASE}/nodejs:18.17.0
|
image: ${IMAGE_BASE}/nodejs:18.18.2
|
||||||
container_name: nodejs
|
container_name: nodejs
|
||||||
environment:
|
environment:
|
||||||
- PACKAGE_PATH=${PACKAGE_PATH}
|
- PACKAGE_PATH=${PACKAGE_PATH}
|
||||||
volumes:
|
volumes:
|
||||||
- "${WWWROOT_PATH}:/data/wwwroot"
|
- "${WWWROOT_PATH}:/data/wwwroot"
|
||||||
working_dir: /data/wwwroot/
|
working_dir: /data/wwwroot/
|
||||||
|
privileged: true
|
||||||
networks:
|
networks:
|
||||||
aix-docker-cc:
|
aix-docker-cc:
|
||||||
ipv4_address: ${NET_SUBNET:-10.12.25}.200
|
ipv4_address: ${NET_SUBNET:-10.12.25}.200
|
||||||
|
|||||||
@ -1,3 +1,2 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
npm install
|
cnpm -v
|
||||||
npm run production
|
|
||||||
|
|||||||
2
nodejs/run-script.sh
Normal file
2
nodejs/run-script.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
pwd
|
||||||
4
www/run-script.sh
Normal file
4
www/run-script.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd /data/wwwroot/项目
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
Loading…
x
Reference in New Issue
Block a user