🐳 Attempt 3 (fixed): Add COPY command for source code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user