Migrate ECR to forgejo container registry
This commit is contained in:
parent
bd1c17b09b
commit
bbea068e12
7 changed files with 47 additions and 70 deletions
|
|
@ -2,25 +2,20 @@ FROM golang:1.22-bookworm AS builder
|
|||
|
||||
ENV GOTOOLCHAIN=auto
|
||||
|
||||
# Pin to a specific release tag
|
||||
ARG VERSION=v2.10.2
|
||||
|
||||
WORKDIR /app
|
||||
RUN git clone --depth 1 --branch ${VERSION} https://github.com/sigbit/mcp-auth-proxy .
|
||||
RUN go mod download
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG TARGETOS
|
||||
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
|
||||
go build -trimpath -ldflags "-w -s" -o /app/bin/mcp-auth-proxy .
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
FROM scratch
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /app/bin/mcp-auth-proxy /mcp-auth-proxy
|
||||
|
||||
COPY --from=builder /app/bin/mcp-auth-proxy /usr/local/bin/mcp-auth-proxy
|
||||
ENV DATA_PATH=/data
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/mcp-auth-proxy"]
|
||||
ENTRYPOINT ["/mcp-auth-proxy"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue