72 Star 358 Fork 102

phachon / mm-wiki

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Dockerfile 812 Bytes
Copy Edit Web IDE Raw Blame History
liuyihong authored 2020-04-12 13:27 . 新增docker部署
FROM alpine/git
ENV TZ=Asia/Shanghai
WORKDIR /app
RUN git clone https://github.com/phachon/mm-wiki.git
FROM golang:1.14.1-alpine
COPY --from=0 /app/mm-wiki /app/mm-wiki
WORKDIR /app/mm-wiki
# 如果国内网络不好,可添加以下环境
# RUN go env -w GO111MODULE=on
# RUN go env -w GOPROXY=https://goproxy.cn,direct
# RUN export GO111MODULE=on
# RUN export GOPROXY=https://goproxy.cn
RUN mkdir /opt/mm-wiki && ls /app/mm-wiki
RUN go build -o /opt/mm-wiki/mm-wiki ./ \
&& cp -r ./conf/ /opt/mm-wiki \
&& cp -r ./install/ /opt/mm-wiki\
&& cp ./scripts/run.sh /opt/mm-wiki\
&& cp -r ./static/ /opt/mm-wiki\
&& cp -r ./views/ /opt/mm-wiki\
&& cp -r ./logs/ /opt/mm-wiki\
&& cp -r ./docs/ /opt/mm-wiki
CMD ["/opt/mm-wiki/mm-wiki", "--conf", "/opt/mm-wiki/conf/mm-wiki.conf"]

Comment ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/phachon/mm-wiki.git
git@gitee.com:phachon/mm-wiki.git
phachon
mm-wiki
mm-wiki
master

Search

101046 36f486cf 1899542 101055 4cb66026 1899542