Add Docker build image, modularize lazy.sh and adjust build from source instructions

refs #35
This commit is contained in:
Christian Schwarz
2017-11-18 19:11:14 +01:00
parent bc4b129536
commit 903fbff710
4 changed files with 154 additions and 51 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM golang:latest
# Docs deps
RUN apt-get update && apt-get install -y \
python3-pip
ADD lazy.sh /tmp/lazy.sh
RUN /tmp/lazy.sh builddep
ADD docs/requirements.txt /tmp/requirements.txt
ENV ZREPL_LAZY_DOCS_REQPATH=/tmp/requirements.txt
RUN /tmp/lazy.sh docdep
RUN mkdir -p /go/src/github.com/zrepl
RUN ln -sf /zrepl /go/src/github.com/zrepl/zrepl
WORKDIR /go/src/github.com/zrepl/zrepl