🐳 Attempt 3 (fixed): Add COPY command for source code

This commit is contained in:
2026-04-09 11:33:08 +02:00
parent ab9bdef81d
commit 9937f814f6

View File

@@ -63,7 +63,7 @@ jobs:
echo "Building Docker image with tags: $TAGS"
# Build the production image using inline version with prebuilt cache image
# Fixed: Use proper variable substitution in the inline Dockerfile
# Fixed: Proper working directory and source code copying
docker build -t dance-lessons-coach -f - . <<EOF
# dance-lessons-coach Production Docker Image
# Inline Dockerfile using prebuilt cache image
@@ -71,6 +71,9 @@ jobs:
# Use the build cache image as base
FROM gitea.arcodange.lab/arcodange/dance-lessons-coach-build-cache:${DEPS_HASH} AS builder
# Copy source code to the correct working directory
COPY . /workspace
# Set working directory and build the binary
WORKDIR /workspace
RUN go build -o dance-lessons-coach ./cmd/server