1 Unstar Star 0 Fork 2

Jin / distill-infraGoApache-2.0

forked from distill / distill-infra 
Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Go基础设施框架 spread retract

Clone or download
Dockerfile 698 Bytes
Copy Edit Web IDE Raw Blame History
# 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"]

Comment ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/sojasosse/distill-infra.git
git@gitee.com:sojasosse/distill-infra.git
sojasosse
distill-infra
distill-infra
master

Search