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:
@@ -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,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
|
||||||
|
|||||||
Reference in New Issue
Block a user