🐛 fix: Dockerfile.prod.template to build binary during Docker build
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 10s
CI/CD Pipeline / CI Pipeline (push) Successful in 4m23s
CI/CD Pipeline / Docker Push (push) Failing after 39s

This commit is contained in:
2026-04-09 09:01:32 +02:00
parent 4a7edf5218
commit 28002070bc

View File

@@ -2,9 +2,13 @@
# Minimal image using pre-built binary from CI cache
# Template: Replace {{DEPS_HASH}} with actual dependency hash
# Use the build cache image as base
# Use the build cache image as base for building
FROM gitea.arcodange.lab/arcodange/dance-lessons-coach-build-cache:{{DEPS_HASH}} AS builder
# Set working directory and build the binary
WORKDIR /workspace
RUN go build -o dance-lessons-coach ./cmd/server
# Final minimal image
FROM alpine:3.18