base-dev/go/Dockerfile

11 lines
329 B
Docker
Raw Permalink Normal View History

FROM golang:alpine
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tencent.com/g' /etc/apk/repositories \
2023-04-20 18:08:35 +08:00
&& apk --no-cache add gcompat gcc g++ openssh zsh git tmux curl make npm
COPY install-p10k.sh /tmp/install-p10k.sh
2023-04-20 18:08:35 +08:00
RUN go env -w GOPROXY=goproxy.cn \
&& go install github.com/swaggo/swag/cmd/swag@latest
WORKDIR /root