add tysc handlers to kontor-gin
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user