Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 76ff0ca

Browse files
committed
add node14 container for building
1 parent 0457237 commit 76ff0ca

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

dev/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# https://hub.docker.com/_/node/
2+
FROM node:14
3+
4+
WORKDIR /app
5+
6+
#CMD ["npm", "run", "serve"]

dev/docker-compose.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ services:
2323
- /var/www/html/wp-content/plugins/wp-plugin-creativecommons/dev/wordpress
2424
- /var/www/html/wp-content/plugins/wp-plugin-creativecommons/dev/db
2525
wpcli:
26-
# continue running until shutdown (this allows docker compose exec which is
27-
# much faster than docker compose run)
28-
# Credits: https://serverfault.com/a/1084975
26+
# continue running until shutdown (allows docker compose exec which is much
27+
# faster than docker compose run) per https://serverfault.com/a/1084975
2928
command: sh -c 'trap "exit" TERM; while true; do sleep 1; done'
3029
container_name: 'local-wpcli'
3130
depends_on:
@@ -57,3 +56,11 @@ services:
5756
MYSQL_ROOT_PASSWORD: root
5857
volumes:
5958
- ./db:/var/lib/mysql
59+
node:
60+
build: .
61+
# continue running until shutdown (allows docker compose exec which is much
62+
# faster than docker compose run) per https://serverfault.com/a/1084975
63+
command: sh -c 'trap "exit" TERM; while true; do sleep 1; done'
64+
container_name: 'local-node'
65+
volumes:
66+
- ..:/app

0 commit comments

Comments
 (0)