1 Star 0 Fork 0

lxin/ginBlog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 480 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM golang:alpine as builder
ENV GOPROXY=https://goproxy.cn,https://goproxy.io,direct \
GO111MODULE=on \
CGO_ENABLED=1
#设置时区参数
ENV TZ=Asia/Shanghai
RUN sed -i 's!http://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
RUN apk --no-cache add tzdata zeromq \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo '$TZ' > /etc/timezone
WORKDIR /app
COPY . /app
RUN go build .
EXPOSE 3000
ENTRYPOINT ["./ginblog"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lxin97/ginblog.git
git@gitee.com:lxin97/ginblog.git
lxin97
ginblog
ginBlog
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385