mirror of
https://github.com/alibaba/higress.git
synced 2026-05-30 07:37:26 +08:00
feat: add golang filter and mcp-server (#1942)
Co-authored-by: johnlanni <zty98751@alibaba-inc.com>
This commit is contained in:
20
plugins/golang-filter/Dockerfile
Normal file
20
plugins/golang-filter/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM golang:1.23 AS golang-base
|
||||
|
||||
ARG GOPROXY
|
||||
ARG GO_FILTER_NAME
|
||||
|
||||
ENV GOFLAGS=-buildvcs=false
|
||||
ENV GOPROXY=${GOPROXY}
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
COPY . .
|
||||
|
||||
WORKDIR /workspace/$GO_FILTER_NAME
|
||||
|
||||
RUN go mod tidy
|
||||
RUN go build -o /$GO_FILTER_NAME.so -buildmode=c-shared .
|
||||
|
||||
FROM scratch AS output
|
||||
ARG GO_FILTER_NAME
|
||||
COPY --from=golang-base /$GO_FILTER_NAME.so $GO_FILTER_NAME.so
|
||||
Reference in New Issue
Block a user