update All feture and service

This commit is contained in:
meninjar
2026-06-03 02:54:26 +00:00
parent af32d9cfdd
commit ce0fa1a291
98 changed files with 272469 additions and 1606 deletions
+4 -6
View File
@@ -1,5 +1,5 @@
# Multi-stage build yang lebih optimal
FROM golang:1.22-alpine AS build
FROM golang:1.25-alpine AS build
# Install build dependencies
RUN apk add --no-cache git ca-certificates tzdata
@@ -22,6 +22,8 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
# Final stage - distroless untuk keamanan
FROM gcr.io/distroless/static:nonroot
WORKDIR /app
# Copy timezone data
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
@@ -31,10 +33,6 @@ COPY --from=build /build/main /app/main
# Use non-root user
USER nonroot:nonroot
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD ["/app/main", "-health"] || exit 1
EXPOSE 8080
EXPOSE 8196
ENTRYPOINT ["/app/main"]