mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 09:54:47 +01:00
77d3a1ad4d
bump enumer to v1.1.1 bump golangci-lint to v1.17.1 no `go mod tidy` because 1.13 and 1.12 seem to alter each other's output fixes #112
30 lines
721 B
Docker
30 lines
721 B
Docker
FROM golang:latest
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
python3-pip \
|
|
unzip
|
|
|
|
ADD build.installprotoc.bash ./
|
|
RUN bash build.installprotoc.bash
|
|
|
|
ADD lazy.sh /tmp/lazy.sh
|
|
ADD docs/requirements.txt /tmp/requirements.txt
|
|
ENV ZREPL_LAZY_DOCS_REQPATH=/tmp/requirements.txt
|
|
RUN /tmp/lazy.sh docdep
|
|
|
|
# prepare volume mount of git checkout to /zrepl
|
|
RUN mkdir -p /src/github.com/zrepl/zrepl
|
|
RUN mkdir -p /.cache && chmod -R 0777 /.cache
|
|
|
|
# $GOPATH is /go
|
|
# Go 1.12 doesn't use modules within GOPATH, but 1.13 and later do
|
|
# => store source outside of GOPATH
|
|
WORKDIR /src
|
|
|
|
# Install build tools (e.g. protobuf generator, stringer) into $GOPATH/bin
|
|
ADD go.mod go.sum ./
|
|
RUN /tmp/lazy.sh godep
|
|
|
|
RUN chmod -R 0777 /go
|
|
|