Define docker compose working dir via working_dir option

This commit is contained in:
Alejandro Celaya 2025-05-09 08:22:08 +02:00
parent 869708469d
commit f6a0910c40

View File

@ -5,7 +5,8 @@ services:
build:
context: .
dockerfile: ./dev.Dockerfile
command: /bin/sh -c "cd /home/shlink/www && npm install && npm run start"
working_dir: /home/shlink/www
command: /bin/sh -c "npm install && npm run start"
volumes:
- ./:/home/shlink/www
ports: