1 Star 0 Fork 0

nwsuafzq / goInception

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 735 Bytes
一键复制 编辑 原始数据 按行查看 历史
hanchuanchuan 提交于 2019-04-23 17:53 . update: 优化Dockerfile
# Builder image
FROM golang:1.12-alpine as builder
ENV TZ=Asia/Shanghai
ENV LANG="en_US.UTF-8"
RUN apk add --no-cache \
wget \
make \
git \
gcc \
musl-dev
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64 \
&& chmod +x /usr/local/bin/dumb-init
COPY bin/goInception /goInception
COPY config/config.toml.example /etc/config.toml
# Executable image
FROM alpine
COPY --from=builder /goInception /goInception
COPY --from=builder /etc/config.toml /etc/config.toml
COPY --from=builder /usr/local/bin/dumb-init /usr/local/bin/dumb-init
WORKDIR /
EXPOSE 4000
ENTRYPOINT ["/usr/local/bin/dumb-init", "/goInception","--config=/etc/config.toml"]
Go
1
https://gitee.com/unixcoder/goInception.git
git@gitee.com:unixcoder/goInception.git
unixcoder
goInception
goInception
master

搜索帮助