Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 1.29 KB

README.md

File metadata and controls

73 lines (50 loc) · 1.29 KB

📔 note-iris

📖 语言

简体中文 | English

⌛ 开始

项目配置

  • 1:配置 Global GOPATH & Project GOPATH
  • 2:配置 Environment
    • GOPROXY=https://goproxy.cn,direct
    • GOFLAGS=-buildvcs=false
    • ENVCONFIG=dev

安装依赖

go mod tidy

运行

go run main.go

编译成可执行文件

go build main.go

🐳 Docker

Go 代码编译成 Linux 可执行文件

set GOOS=linux

set GOARCH=amd64

go build main.go

Docker 构建

docker build -t note-iris .

Docker 运行

docker run -d -p 18098:18098 --name note-iris note-iris

📜 开源协议

MIT License Copyright (c) 2022 周博义