Skip to content

Commit

Permalink
update Dockerfile to go1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Aug 11, 2023
1 parent 511c9a5 commit 589fe49
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM golang:1.20.6-alpine3.18 as builder
FROM golang:1.21.0-alpine3.18 as builder
MAINTAINER xtaci <[email protected]>
ENV GO111MODULE=on
RUN apk update && \
apk upgrade && \
apk add git gcc libc-dev linux-headers
RUN apk add git
RUN git clone https://github.com/xtaci/kcptun.git
RUN cd kcptun && \
go build -mod=vendor -ldflags "-X main.VERSION=$(date -u +%Y%m%d) -s -w" -o /client github.com/xtaci/kcptun/client && \
Expand Down

0 comments on commit 589fe49

Please sign in to comment.