diff --git a/Dockerfile b/Dockerfile index 599211e..720ab6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.14.9-alpine3.11 as builder +FROM golang:1.20.6-alpine3.18 as builder MAINTAINER xtaci ENV GO111MODULE=on RUN apk update && \ @@ -6,7 +6,7 @@ RUN apk update && \ apk add git gcc libc-dev linux-headers RUN go get -ldflags "-X main.VERSION=$(date -u +%Y%m%d) -s -w" github.com/xtaci/kcptun/client && go get -ldflags "-X main.VERSION=$(date -u +%Y%m%d) -s -w" github.com/xtaci/kcptun/server -FROM alpine:3.11 +FROM alpine:3.18 RUN apk add --no-cache iptables COPY --from=builder /go/bin /bin EXPOSE 29900/udp