Fix deployment: remove build context from docker-compose.yml

Production servers pull the pre-built image from ghcr.io — having
build: . caused docker compose up to fail when no Dockerfile was present.

Moved build: . to docker-compose.override.yml (gitignored) which Docker
Compose automatically merges locally for dev builds. Production deployments
only need docker-compose.yml and .env.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Philip
2026-02-18 10:55:37 -08:00
parent e0537bf633
commit aec3dd68fe
2 changed files with 3 additions and 1 deletions
+3
View File
@@ -26,6 +26,9 @@ yarn-error.log*
.env .env
.env*.local .env*.local
# local Docker override (build context for dev, not needed in production)
docker-compose.override.yml
# vercel # vercel
.vercel .vercel
-1
View File
@@ -1,6 +1,5 @@
services: services:
app: app:
build: .
image: ghcr.io/djsplice07/squares_game:latest image: ghcr.io/djsplice07/squares_game:latest
network_mode: host network_mode: host
env_file: .env env_file: .env