Add kontor-echo and kontor-fiber to kontor-pod

resolve #35

(cherry picked from commit 05e26e512da9c237adbb58510df2b490837cd836)
This commit is contained in:
2026-01-29 23:36:15 +01:00
committed by Thomas Peetz
parent b32e8fee3d
commit aa1f73961f
5 changed files with 60 additions and 15 deletions
@@ -1,5 +1,5 @@
# ---------- Stage 1: Build ----------
FROM golang:1.25-alpine AS builder
FROM docker.io/library/golang:1.25-alpine AS builder
# Set the working directory
WORKDIR /app
# Ensure a portable, static-ish binary
@@ -18,11 +18,7 @@ FROM alpine:latest
WORKDIR /app
# Install runtime dependencies you actually need
RUN apk add --no-cache ca-certificates tzdata curl
# Create non-root user for security
RUN addgroup -S kontor && adduser -S -G kontor -H -s /sbin/nologin kontor
# Copy the binary and set ownership
COPY --from=builder --chown=kontor:kontor /app/kontor /app/kontor
# Run as non-root user
USER kontor
COPY --from=builder /app/kontor /app/kontor
# Set the entrypoint command
ENTRYPOINT ["/app/kontor"]
+1 -1
View File
@@ -35,7 +35,7 @@ func main() {
handler.SetupComicRoutes(api)
handler.SetupMediaRoutes(api)
// Listen on port 8900
app.Listen(":8600")
app.Listen(":8500")
log.Println("Kontor finished")
}