From 0e917594d90838e004684fcc15083afa00263a84 Mon Sep 17 00:00:00 2001 From: xtaci Date: Fri, 28 Jul 2023 00:31:59 +0800 Subject: [PATCH] upd Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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