Update docker-compose command to include git pull before installation
This commit is contained in:
@@ -8,7 +8,7 @@ services:
|
||||
- "$PORT:8080"
|
||||
env_file:
|
||||
- .env
|
||||
command: sh -c "npm i -g pnpm && cd frontend && pnpm install && pnpm run build && cd ../backend && pnpm install && pnpm run start"
|
||||
command: sh -c "git pull && npm i -g pnpm && cd frontend && pnpm install && pnpm run build && cd ../backend && pnpm install && pnpm run start"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:$PORT/health"]
|
||||
interval: 30s
|
||||
|
||||
Reference in New Issue
Block a user