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
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2m43s
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# 1. Build Go Backend
|
||||
FROM golang:1.22-alpine AS builder
|
||||
|
||||
# SQLite 및 CGO 빌드에 필요한 패키지 설치
|
||||
RUN apk add --no-cache gcc musl-dev
|
||||
|
||||
# Cache go modules
|
||||
COPY backend/go.mod backend/go.sum ./backend/
|
||||
RUN cd backend && go mod download
|
||||
|
||||
Reference in New Issue
Block a user