Try fixing Jenkins.

This commit is contained in:
emil28092005
2026-01-18 00:58:13 +00:00
parent ce46878054
commit 3929678a43
2 changed files with 48 additions and 21 deletions
+7 -2
View File
@@ -1,10 +1,15 @@
FROM golang:1.25.5-alpine AS builder
RUN apk add --no-cache build-base ca-certificates
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
RUN --mount=type=cache,target=/go/pkg/mod \
go mod download
COPY . .
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o shagram ./cmd/server
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=1 GOOS=linux go build -o shagram ./cmd/server
FROM alpine:latest
RUN apk add --no-cache ca-certificates sqlite-libs sqlite