# cat https://github.com/chalvern/smile/blob/master/docker/Dockerfile
FROM golang:1.12
## vim
RUN apt-get update \
&& apt-get install -y vim \
&& rm -rf /var/lib/apt/lists/*
# vim setting
COPY vimrc /root/.vimrc
RUN go get -u github.com/derekparker/delve/cmd/dlv
WORKDIR $GOPATH
-
拉取映象:docker pull chalvern/golang:1.12
-
以 privileged 方式執行映象:docker run -it –privileged chalvern/golang:1.12 bash
-
此時便有了一個 Go 開發環境。
-
https://github.com/fluent/fluent-bit
-
https://jingwei.link/2018/06/30/how-to-play-docker-simplly.html
-
https://jingwei.link/2019/03/15/golang-json-unmarshal-using.html
-
https://jingwei.link/2019/03/16/golang-json-performance.html
-
https://hub.docker.com/_/golang
-
https://github.com/chalvern/smile
朋友會在“發現-看一看”看到你“在看”的內容