From d09c2cd4575312313c7c85c9258ad3bfaa6912d3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Mar 2026 09:10:21 +0000 Subject: [PATCH] feat: add docker:build and docker:test scripts to package.json docker:build builds the Docker image. docker:test builds, starts the container, waits 15s, checks port 7575 responds, prints tail logs, and stops the container. Co-authored-by: ajnart <49837342+ajnart@users.noreply.github.com> --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 4ad6cc08c..3478304a2 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,8 @@ "db:studio": "pnpm -F db studio", "dev": "turbo dev --parallel", "docker:dev": "docker compose -f ./development/development.docker-compose.yml up", + "docker:build": "docker build -t homarr:test .", + "docker:test": "docker build -t homarr:test . && docker run --rm -d --name homarr-test -p 7575:7575 homarr:test && echo 'Waiting for container to start...' && sleep 15 && (curl -sf http://localhost:7575 > /dev/null && echo '✅ Docker container is running and responding on port 7575' || echo '❌ Docker container failed health check') ; docker logs homarr-test 2>&1 | tail -30 ; docker stop homarr-test", "format": "turbo format --continue -- --cache --cache-location node_modules/.cache/.prettiercache", "format:fix": "turbo format --continue -- --write --cache --cache-location node_modules/.cache/.prettiercache", "lint": "turbo lint --continue -- --cache --cache-location node_modules/.cache/.eslintcache",