6 Star 11 Fork 1

distill / distill-infra

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 698 Bytes
一键复制 编辑 原始数据 按行查看 历史
# Compile stage
FROM golang:1.13.8 AS build-env
ADD . /distill-infra
WORKDIR /distill-infra
ENV GOOS linux
ENV GOARCH amd64
ENV CGO_ENABLED=0
ENV GOFLAGS "-ldflags=-w -ldflags=-s"
ENV GO111MODULE=on
ENV GOFLAGS=" -mod=vendor"
ENV GOPROXY=https://yz271544:UbFWoA20KLRShpM@goproxy.io,direct
RUN go build -o /brun brun/main.go
# Final stage
FROM debian:buster
EXPOSE 18180
WORKDIR /
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
RUN apt-get install -y coreutils
COPY --from=build-env /distill-infra/config /config
COPY --from=build-env /brun /
RUN chmod +x /brun
CMD ["/brun"]
Go
1
https://gitee.com/banyanhouse/distill-infra.git
git@gitee.com:banyanhouse/distill-infra.git
banyanhouse
distill-infra
distill-infra
master

搜索帮助