mirror of
https://github.com/xtaci/kcptun.git
synced 2024-04-21 12:32:32 +00:00
9 lines
335 B
Docker
9 lines
335 B
Docker
FROM golang:alpine
|
|
MAINTAINER xtaci <daniel820313@gmail.com>
|
|
RUN apk update && \
|
|
apk upgrade && \
|
|
apk add git
|
|
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
|
|
EXPOSE 29900/udp
|
|
EXPOSE 12948
|