diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 5c10e89e..e1d4e255 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -16,8 +16,13 @@ services: dota: image: "ghcr.io/dotabod/dota:v2.16" - volumes: - - $PWD/packages/dota/src:/app/packages/dota/src + develop: + watch: + - action: sync + path: $PWD/packages/dota/src + target: /app/packages/dota/src + - action: rebuild + path: $PWD/packages/dota/package.json ports: - "5120:5120" diff --git a/packages/Dockerfile.dota b/packages/Dockerfile.dota index 84038872..20f0ab48 100644 --- a/packages/Dockerfile.dota +++ b/packages/Dockerfile.dota @@ -40,6 +40,7 @@ COPY --from=builder /app/node_modules ./node_modules # Dota app COPY --from=builder /app/$BUILD_CONTEXT/dist $BUILD_CONTEXT/dist/ +COPY --from=builder /app/$BUILD_CONTEXT/src $BUILD_CONTEXT/src/ COPY --from=builder /app/$BUILD_CONTEXT/locales $BUILD_CONTEXT/locales/ COPY --from=builder /app/$BUILD_CONTEXT/package.json ./$BUILD_CONTEXT/ diff --git a/runner.sh b/runner.sh index 98b0373e..e9f8f023 100644 --- a/runner.sh +++ b/runner.sh @@ -150,7 +150,7 @@ login() { up() { docker_login echo "Starting server with database $NODE_ENV at $dockerfile" - docker_command up -d "$app" + docker_command watch "$app" } update() {