update Dockerfile

This commit is contained in:
xtaci
2020-04-10 21:49:24 +08:00
parent 7cf99098cf
commit 4358f5600f
+2 -2
View File
@@ -1,4 +1,4 @@
FROM golang:alpine as builder
FROM golang:1.14.2-alpine3.11 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.9
FROM alpine:3.11
COPY --from=builder /go/bin /bin
EXPOSE 29900/udp
EXPOSE 12948