fix: enable CGO for sqlite support in backend docker image
Some checks failed
CI / lint (push) Failing after 1s
CI / test (push) Failing after 1s
CI / build (push) Has been skipped

This commit is contained in:
KV-Tube Deployer 2026-02-22 19:44:15 +07:00
parent 57d8fc31ab
commit bc1be07967

View file

@ -2,13 +2,13 @@ FROM golang:1.24-alpine AS builder
WORKDIR /app
RUN apk add --no-cache git
RUN apk add --no-cache git gcc musl-dev
COPY backend/go.mod backend/go.sum ./
RUN go mod download
COPY backend/ ./
RUN CGO_ENABLED=0 GOOS=linux go build -o kv-tube .
RUN CGO_ENABLED=1 GOOS=linux go build -o kv-tube .
FROM alpine:latest