Add gcc and musl-dev to Docker builder stage for CGO compilation
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2m43s

This commit is contained in:
AI Assistant
2026-03-12 14:29:48 +09:00
parent ef78b533a0
commit 658807981e

View File

@@ -1,5 +1,9 @@
# 1. Build Go Backend # 1. Build Go Backend
FROM golang:1.22-alpine AS builder FROM golang:1.22-alpine AS builder
# SQLite 및 CGO 빌드에 필요한 패키지 설치
RUN apk add --no-cache gcc musl-dev
# Cache go modules # Cache go modules
COPY backend/go.mod backend/go.sum ./backend/ COPY backend/go.mod backend/go.sum ./backend/
RUN cd backend && go mod download RUN cd backend && go mod download