Skip to content

Commit

Permalink
build: add Dockerfile.node
Browse files Browse the repository at this point in the history
  • Loading branch information
frugan-dev committed Jun 18, 2024
1 parent 1c3901b commit 7acd941
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ wait:

up:
@echo "Starting docker compose services"
@MARIADB_TAG=${MARIADB_TAG} WORDPRESS_TAG=${WORDPRESS_TAG} NODE_TAG=${NODE_TAG} $(DOCKER_COMPOSE) up -d
@MARIADB_TAG=${MARIADB_TAG} WORDPRESS_TAG=${WORDPRESS_TAG} NODE_TAG=${NODE_TAG} $(DOCKER_COMPOSE) up -d --build

install-node: clean-node
@echo "[node] Installing dependencies"
Expand Down
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ services:

node:
container_name: node
image: docker.io/bitnami/node:${NODE_TAG:-latest}
build:
context: .
dockerfile: docker/Dockerfile.node
args:
NODE_TAG: ${NODE_TAG:-latest}
ports:
- ${NODE_PORT:-3000}:3000
volumes:
Expand Down
7 changes: 7 additions & 0 deletions docker/Dockerfile.node
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ARG NODE_TAG=latest
FROM docker.io/bitnami/node:${NODE_TAG}

# required by Github Actions
RUN apt-get update \
&& apt-get install -y python2 \
&& ln -s /usr/bin/python2 /usr/bin/python

0 comments on commit 7acd941

Please sign in to comment.