feat: migrate to Docker Compose for build cache management

- Replace docker run commands with docker compose
- Use separate docker-compose.build.yml for build cache
- Maintain PostgreSQL service with Docker Compose
- Ensure consistent container networking

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-04-07 23:15:26 +02:00
parent 4848becbdc
commit 02674dfb50
2 changed files with 65 additions and 34 deletions

16
docker-compose.build.yml Normal file
View File

@@ -0,0 +1,16 @@
services:
build-cache:
image: gitea.arcodange.lab/arcodange/dance-lessons-coach-build-cache:${DEPS_HASH}
build:
context: .
dockerfile: docker/Dockerfile.build
args:
DEPS_HASH: ${DEPS_HASH}
container_name: dance-lessons-coach-build-cache
volumes:
- .:/workspace
working_dir: /workspace
environment:
- GOPATH=/go
- PATH=/go/bin:/usr/local/go/bin:/usr/local/bin:/usr/bin:/bin
restart: unless-stopped