Fixed deploy pipeline
Build and Deploy / build-and-deploy (push) Failing after 2m51s

This commit is contained in:
2026-05-19 23:27:37 +03:00
parent e6096c98fa
commit e6a00ca9f0
6 changed files with 108 additions and 57 deletions
+5 -10
View File
@@ -14,7 +14,7 @@ RUN npm run build
# ================================
# Stage 2: сборка Go
# ================================
FROM golang:1.25-alpine AS backend
FROM golang:1.26-bookworm AS backend
WORKDIR /app
@@ -34,15 +34,10 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o server ./src/
# ================================
# Stage 3: финальный образ
# ================================
FROM alpine:3.19
FROM scratch
# нужен для корректной работы TLS и временных зон
RUN apk add --no-cache ca-certificates tzdata
WORKDIR /app
COPY --from=backend /app/server ./server
EXPOSE 8080
COPY --from=backend /app/server /server
COPY --from=backend /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=backend /usr/share/zoneinfo /usr/share/zoneinfo
ENTRYPOINT ["./server"]