File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1- FROM --platform=$BUILDPLATFORM docker.io/library/ golang:alpine AS builder
1+ FROM --platform=$BUILDPLATFORM golang:1.22-bookworm AS builder
22
33WORKDIR /app
44COPY go.mod go.sum ./
55RUN go mod download
66COPY ./ /app
77
88ARG TARGETARCH
9- RUN CGO_ENABLED=0 GOARCH=$TARGETARCH go build -trimpath -ldflags '-w -s' -o bin/main .
9+ ARG TARGETOS
10+ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
11+ go build -trimpath -ldflags "-w -s" -o /app/bin/main .
1012
11- FROM docker.io/library/alpine:latest
13+ FROM debian:bookworm-slim
14+
15+ RUN apt-get update && apt-get install -y --no-install-recommends \
16+ ca-certificates curl python3 python3-pip nodejs npm \
17+ && rm -rf /var/lib/apt/lists/*
1218
13- RUN apk add --no-cache nodejs npm python3 uv
1419COPY --from=builder /app/bin/main /usr/local/bin/mcp-auth-proxy
1520ENV DATA_PATH=/data
1621
You can’t perform that action at this time.
0 commit comments