add tysc handlers to kontor-gin

This commit is contained in:
2026-09-30 04:12:03 +02:00
parent c848758821
commit f912dcb670
100 changed files with 2420 additions and 1064 deletions
+7 -6
View File
@@ -10,7 +10,7 @@ RUN go mod download
# Copy the source code
COPY . .
# Build the Go application (strip debug info for smaller size)
RUN go build -trimpath -ldflags="-s -w" -o kontor-gin cmd/kontor-gin/main.go
RUN go build -trimpath -ldflags="-s -w" -o kontor cmd/kontor/main.go
# ---------- Stage 2: Final ----------
FROM alpine:latest
@@ -19,9 +19,10 @@ WORKDIR /app
# Install runtime dependencies you actually need
RUN apk add --no-cache ca-certificates tzdata curl
# Copy the binary and set ownership
COPY --from=builder /app/kontor-gin /app/kontor-gin
COPY --from=builder /app/templates /app/templates
COPY --from=builder /app/assets /app/assets
ENV GIN_MODE=release
COPY --from=builder /app/kontor /app/kontor
#COPY --from=builder /app/kontor-gin /app/kontor-gin
#COPY --from=builder /app/templates /app/templates
#COPY --from=builder /app/assets /app/assets
#ENV GIN_MODE=release
# Set the entrypoint command
ENTRYPOINT ["/app/kontor-gin"]
ENTRYPOINT ["/app/kontor"]