diff --git a/Dockerfile b/Dockerfile index 5fc86069e..c46bd3770 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,7 @@ -FROM golang:1.20.6-alpine3.18 as builder +FROM golang:1.21.0-alpine3.18 as builder MAINTAINER xtaci ENV GO111MODULE=on -RUN apk update && \ - apk upgrade && \ - apk add git gcc libc-dev linux-headers +RUN apk add git RUN git clone https://github.com/xtaci/kcptun.git RUN cd kcptun && \ go build -mod=vendor -ldflags "-X main.VERSION=$(date -u +%Y%m%d) -s -w" -o /client github.com/xtaci/kcptun/client && \