Add npm. Call main.js from local directory.
This commit is contained in:
parent
e8a1b7befd
commit
68f70f246a
6
run.sh
6
run.sh
@ -5,13 +5,13 @@
|
|||||||
### Can docker-compose do this rather than running a sh file on the host OS?
|
### Can docker-compose do this rather than running a sh file on the host OS?
|
||||||
# Look at Dockerfile-ADD for doing git clones into a docker environment.
|
# Look at Dockerfile-ADD for doing git clones into a docker environment.
|
||||||
# Out of scope for this project, this project is just the site.
|
# Out of scope for this project, this project is just the site.
|
||||||
if [[ ! `which php` || ! `which node` ]]; then
|
if [[ ! `which php` || ! `which node`|| ! `which npm` ]]; then
|
||||||
sudo apt install -y php-fpm nodejs
|
sudo apt install -y php-fpm nodejs npm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
main.js
|
./main.js
|
||||||
###
|
###
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user