Initial Digitribe ONIX setup
Some checks failed
Terraform Deploy to GCP / Terraform Plan Only (push) Has been cancelled

This commit is contained in:
Eric
2026-04-13 23:39:49 -04:00
parent 168f8284dc
commit 118d4c61a4
96 changed files with 6368 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
FROM golang:1.24-bullseye AS builder
FROM golang:1.25 AS builder
WORKDIR /workspace/app
ENV GOTOOLCHAIN=auto
COPY cmd/adapter ./cmd/adapter
COPY core/ ./core
COPY pkg/ ./pkg
@@ -10,16 +11,11 @@ RUN go mod download
RUN go build -o server cmd/adapter/main.go
# Create a minimal runtime image
FROM cgr.dev/chainguard/wolfi-base
# ✅ Alpine is removed; using minimal Debian
WORKDIR /app
# Copy only the built binary and plugin
COPY --from=builder /workspace/app/server .
# Expose port 8080
EXPOSE 8080
# Run the Go server with the config flag from environment variable.
CMD ["sh", "-c", "./server --config=${CONFIG_FILE}"]