Files
zeekayandHanzo Dev 8ee8950230 Go 1.27.1, and the code it can say more simply
The module declares go 1.27.1 and the adapter image follows. go fix
applied the modernizers and left ptrString and ptrBool with no callers,
so they are gone; omitzero is not applied, since it changes what the
JSON says.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 19:52:31 -07:00

33 lines
734 B
Docker

FROM golang:1.27.1-alpine AS builder
# The official golang images set GOTOOLCHAIN=local, so a base older than the
# `go` directive in go.mod fails the build outright rather than fetching a
# toolchain. `auto` lets a future go.mod bump resolve itself against the
# checksum database instead of hard-failing here.
ENV GOTOOLCHAIN=auto
WORKDIR /app
# Copy the SDK source
COPY go.mod go.sum ./
COPY *.go ./
# Copy adapter
COPY sdk_compliance_adapter/main.go /app/adapter/
# Download dependencies
RUN go mod download
# Build adapter
RUN cd /app/adapter && go build -o /app/adapter-server main.go
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/adapter-server /app/adapter-server
EXPOSE 8080
CMD ["/app/adapter-server"]