一,安装zap和go-file-rotatelogs两个库:
1,安装zap:
liuhongdi@ku:/data/liuhongdi/zaplog$ go get -u go.uber.org/zap
2,安装go-file-rotatelogs
liuhongdi@ku:/data/liuhongdi/zaplog2$ go get -u github ...……
创建一个文件夹 goWeb:
# ls
Dockerfile main
将编译好的go文件main,拖到goWeb内并赋权(chmod 777 main)。
在goWeb内创建文件Dockerfile,内容如下:
FROM alpine:latest
COPY main /app/main
#ENTRYPOINT [ ...……
It’s hard to say where I want to go most. Because there are too many places I want to travel with my friends or my families. For example, Tibet, Yunnan and some places in American. These places are s ...……