🗂️ refactor: organize Dockerfiles into docker/ directory and update all references
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 22s
CI/CD Pipeline / CI Pipeline (push) Failing after 47s

This commit is contained in:
2026-04-07 12:45:09 +02:00
parent 57db3e0a32
commit c3587119b7
8 changed files with 194 additions and 11 deletions

View File

@@ -16,7 +16,12 @@ echo ""
# 2. Build the build cache image
echo "2. Building build cache image..."
docker build -t dance-lessons-coach-build-cache:$DEPS_HASH -f Dockerfile.build .
if command -v docker >/dev/null 2>&1; then
docker build -t dance-lessons-coach-build-cache:$DEPS_HASH -f docker/Dockerfile.build .
else
echo "❌ Docker not found"
exit 1
fi
echo "✅ Build cache image built: dance-lessons-coach-build-cache:$DEPS_HASH"
echo ""

View File

@@ -95,10 +95,10 @@ if [ "$HAS_DOCKER" = true ]; then
echo " docker build -t dance-lessons-coach:$CURRENT_VERSION ."
echo ""
echo "2. Build production image using Dockerfile.prod:"
echo " # Note: Local Dockerfile.prod uses 'latest' tag for testing"
echo " docker build -t dance-lessons-coach-prod:$CURRENT_VERSION -f Dockerfile.prod ."
echo " # For CI/CD, the workflow generates correct Dockerfile.prod with dependency hash"
echo "2. Build production image using docker/Dockerfile.prod:"
echo " # Note: Local docker/Dockerfile.prod uses 'latest' tag for testing"
echo " docker build -t dance-lessons-coach-prod:$CURRENT_VERSION -f docker/Dockerfile.prod ."
echo " # For CI/CD, the workflow generates correct docker/Dockerfile.prod with dependency hash"
echo ""
echo "3. Compare image sizes:"
@@ -140,8 +140,8 @@ if [ "$HAS_DOCKER" = true ]; then
read -p "📋 Build (d)development or (p)production image? [d/p]: " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Pp]$ ]]; then
echo "🏗️ Building production image with Dockerfile.prod..."
docker build -t dance-lessons-coach-prod:$CURRENT_VERSION -f Dockerfile.prod .
echo "🏗️ Building production image with docker/Dockerfile.prod..."
docker build -t dance-lessons-coach-prod:$CURRENT_VERSION -f docker/Dockerfile.prod .
docker tag dance-lessons-coach-prod:$CURRENT_VERSION dance-lessons-coach-prod:latest
echo "✅ Production Docker image built: dance-lessons-coach-prod:$CURRENT_VERSION"
CONTAINER_IMAGE="dance-lessons-coach-prod:$CURRENT_VERSION"