Add kontor-echo and kontor-fiber to kontor-pod
resolve #35 (cherry picked from commit 05e26e512da9c237adbb58510df2b490837cd836)
This commit is contained in:
@@ -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"]
|
||||
@@ -49,6 +49,6 @@ func main() {
|
||||
handler.SetupComicRoutes(group)
|
||||
handler.SetupMediaRoutes(group)
|
||||
|
||||
e.Logger.Fatal(e.Start(":8700"))
|
||||
e.Logger.Fatal(e.Start(":8400"))
|
||||
log.Println("Kontor finished")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user