add
This commit is contained in:
parent
c12e970c52
commit
0b5be9a97d
@ -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
|
||||
|
||||
@ -1,3 +1,2 @@
|
||||
#!/bin/bash
|
||||
npm install
|
||||
npm run production
|
||||
cnpm -v
|
||||
|
||||
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