mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-12-20 04:00:05 +08:00
1. 新增了阿里的源地址
2. docker build的时候 go get -d ./... 这个编译不过去 所以注释掉了
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -1,18 +1,19 @@
|
|||||||
FROM golang:1.8.3-alpine3.6
|
FROM golang:1.8.3-alpine3.6
|
||||||
|
|
||||||
|
# add china aliyun repo 新增了 alpine 3.6 的阿里源
|
||||||
|
RUN cp /etc/apk/repositories /etc/apk/repositories.back && \
|
||||||
|
echo "https://mirrors.aliyun.com/alpine/v3.6/main/" > /etc/apk/repositories && \
|
||||||
|
echo "https://mirrors.aliyun.com/alpine/v3.6/community/" >> /etc/apk/repositories
|
||||||
|
|
||||||
RUN apk add --update bash git make gcc g++
|
RUN apk add --update bash git make gcc g++
|
||||||
|
|
||||||
ADD . /go/src/github.com/lifei6671/mindoc
|
ADD . /go/src/github.com/lifei6671/mindoc
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/lifei6671/mindoc
|
WORKDIR /go/src/github.com/lifei6671/mindoc
|
||||||
|
|
||||||
RUN chmod +x start.sh
|
RUN chmod +x start.sh
|
||||||
|
|
||||||
RUN go get -d ./... && \
|
#RUN go get -d ./... && \ # 这行 docker build 不过去,所以注释掉了
|
||||||
go get github.com/mitchellh/gox && \
|
RUN go get github.com/mitchellh/gox && \
|
||||||
gox -os "windows linux darwin" -arch amd64
|
gox -os "windows linux darwin" -arch amd64
|
||||||
|
|
||||||
|
|
||||||
CMD ["./start.sh"]
|
CMD ["./start.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user