ci: add files service pipelines

This commit is contained in:
Grendgi
2026-06-16 12:49:47 +03:00
parent ed49eab7b9
commit 8150793ffa
5 changed files with 150 additions and 1 deletions

15
Dockerfile.server Normal file
View File

@@ -0,0 +1,15 @@
FROM golang:1.25-alpine AS build
WORKDIR /src
ENV GOPRIVATE=gitea.estateliga.work
RUN apk add --no-cache git
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /files-service ./cmd/server
FROM gcr.io/distroless/static-debian12
COPY --from=build /files-service /files-service
COPY migrations /migrations
EXPOSE 3001
ENTRYPOINT ["/files-service"]