diff --git a/docker-compose.yaml b/docker-compose.yaml index 145b045dd..9665e4ef1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,10 +3,10 @@ services: image: ${IMAGE_NAME:-ghcr.io/abhigyanpatwari/gitnexus:latest} container_name: ${CONTAINER_NAME:-gitnexus} ports: - - "${HOST_PORT:-4173}:4173" + - '${HOST_PORT:-4173}:4173' restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:4173/"] + test: ['CMD', 'curl', '-f', 'http://localhost:4173/'] interval: 30s timeout: 5s retries: 3 diff --git a/docker-server.mjs b/docker-server.mjs index 0af70a482..c72f1b609 100644 --- a/docker-server.mjs +++ b/docker-server.mjs @@ -60,7 +60,9 @@ const server = createServer(async (req, res) => { } res.writeHead(200, { - 'Cache-Control': filePath.includes('/assets/') ? 'public, max-age=31536000, immutable' : 'no-cache', + 'Cache-Control': filePath.includes('/assets/') + ? 'public, max-age=31536000, immutable' + : 'no-cache', 'Content-Type': contentTypes[extname(filePath)] || 'application/octet-stream', 'Cross-Origin-Opener-Policy': 'same-origin', 'Cross-Origin-Embedder-Policy': 'require-corp', diff --git a/docker-server.test.mjs b/docker-server.test.mjs index 1d0f01626..a1005b0e4 100644 --- a/docker-server.test.mjs +++ b/docker-server.test.mjs @@ -25,7 +25,9 @@ function rawGet(port, path) { const req = http.request({ host: '127.0.0.1', port, path }, (res) => { let body = ''; res.setEncoding('utf8'); - res.on('data', (chunk) => { body += chunk; }); + res.on('data', (chunk) => { + body += chunk; + }); res.on('end', () => resolve({ status: res.statusCode, headers: res.headers, body })); }); req.on('error', reject); @@ -61,7 +63,9 @@ before(async () => { env: { ...process.env, PORT: String(serverPort) }, stdio: 'pipe', }); - child.on('error', (err) => { throw err; }); + child.on('error', (err) => { + throw err; + }); await waitForServer(serverPort); });