mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-08-17 03:27:02 +08:00
25 lines
501 B
Docker
25 lines
501 B
Docker
FROM golang:1.25 AS build
|
|
|
|
WORKDIR /src
|
|
|
|
ARG GOPROXY=https://goproxy.cn,direct
|
|
ENV GOPROXY=${GOPROXY}
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/cursor-tab-server .
|
|
|
|
FROM scratch
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
COPY --from=build /out/cursor-tab-server /app/cursor-tab-server
|
|
COPY config.yaml /app/config.yaml
|
|
|
|
EXPOSE 8041
|
|
|
|
ENTRYPOINT ["/app/cursor-tab-server"]
|