upd Dockerfile

This commit is contained in:
xtaci
2023-07-28 00:31:59 +08:00
parent 432e75c76a
commit 0e917594d9
+2 -2
View File
@@ -1,4 +1,4 @@
FROM golang:1.14.9-alpine3.11 as builder
FROM golang:1.20.6-alpine3.18 as builder
MAINTAINER xtaci <daniel820313@gmail.com>
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