1 Star 0 Fork 29

apple006/gocron

forked from Gitee 极速下载/gocron 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 618 Bytes
一键复制 编辑 原始数据 按行查看 历史
记住一座城 提交于 2018-07-08 22:43 . 增加docker文档
FROM golang:1.10-alpine as builder
WORKDIR /go/src/github.com/ouqiang/gocron
COPY . .
RUN apk update \
&& apk add --no-cache git ca-certificates make bash nodejs yarn
RUN make install-vue \
&& make build-vue \
&& make statik \
&& CGO_ENABLED=0 make gocron
FROM alpine:3.7
RUN apk add --no-cache ca-certificates tzdata \
&& addgroup -S app \
&& adduser -S -g app app
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
WORKDIR /app
COPY --from=builder /go/src/github.com/ouqiang/gocron/bin/gocron .
RUN chown -R app:app ./
EXPOSE 5920
USER app
ENTRYPOINT ["/app/gocron", "web"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tang006/gocron.git
git@gitee.com:tang006/gocron.git
tang006
gocron
gocron
master

搜索帮助