diff --git a/docker-compose.yml b/docker-compose.yml index 39795b2..bda0069 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: - ./:/home/node/app:Z ports: - ${SERVER_PORT}:3000 - command: "npm start" + command: bash -c "cd /home/node/app && npm install && npm start" restart: always healthcheck: test: (ps ax | grep -q "[n]ode dist/index.js" && echo "Ok") || exit 1