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:
nodejs:
image: ${IMAGE_BASE}/nodejs:18.17.0
image: ${IMAGE_BASE}/nodejs:18.18.2
container_name: nodejs
environment:
- PACKAGE_PATH=${PACKAGE_PATH}
volumes:
- "${WWWROOT_PATH}:/data/wwwroot"
working_dir: /data/wwwroot/
privileged: true
networks:
aix-docker-cc:
ipv4_address: ${NET_SUBNET:-10.12.25}.200

View File

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

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