mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2026-05-14 09:15:32 +00:00
build(make): run npm-install before docker-compose targets
Add npm-install dependency to up/dev/prod targets so app/static/vendor and app/node_modules exist on the host before the ./app:/app bind mount masks the build-time artifacts inside the container. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
6
Makefile
6
Makefile
@@ -22,7 +22,7 @@ build-no-cache:
|
||||
docker build --no-cache -t application-portfolio .
|
||||
|
||||
.PHONY: up
|
||||
up:
|
||||
up: npm-install
|
||||
# Start the application using docker-compose with build.
|
||||
docker-compose up -d --build --force-recreate
|
||||
|
||||
@@ -58,12 +58,12 @@ logs:
|
||||
docker logs -f portfolio
|
||||
|
||||
.PHONY: dev
|
||||
dev:
|
||||
dev: npm-install
|
||||
# Start the application in development mode using docker-compose.
|
||||
FLASK_ENV=development docker-compose up -d
|
||||
|
||||
.PHONY: prod
|
||||
prod:
|
||||
prod: npm-install
|
||||
# Start the application in production mode using docker-compose (with build).
|
||||
docker-compose up -d --build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user