Skip to content

Commit

Permalink
Uses devcontainer docker compose to overwrite the main docker compose…
Browse files Browse the repository at this point in the history
… file
  • Loading branch information
MacarielAerial committed Jul 23, 2024
1 parent a28a85f commit 7e4b92e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: gaia-dev

services:
gaia:
build:
context: .
# Overwrite the main file to use dev stage
target: dev
dockerfile: Dockerfile
# Prevent the container from exiting after initialisation
command: /bin/sh -c "while sleep 1000; do :; done"

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ services:
gaia:
build:
context: .
# docker-compose file is only used in dev
target: dev
# This docker compose file is used in production
target: live
dockerfile: Dockerfile
# Replace placeholder service name
image: gaia-live
Expand Down

0 comments on commit 7e4b92e

Please sign in to comment.