This commit is contained in:
chenc 2023-11-08 09:32:57 +08:00
parent c12e970c52
commit 0b5be9a97d
4 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -1,3 +1,2 @@
#!/bin/bash #!/bin/bash
npm install cnpm -v
npm run production

2
nodejs/run-script.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
pwd

4
www/run-script.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
cd /data/wwwroot/项目
npm install
npm run build