github.com/metacurrency/holochain@v0.1.0-alpha-26.0.20200915073418-5c83169c9b5b/docker/hc-dev-tools/Dockerfile.jessie (about) 1 FROM golang 2 # UID argument specified by docker build --build-arg uid=<uid> and defaults to 1000 3 ARG uid=${UID_MIN:-1000} 4 5 # Install packages, cache dependencies of holochain 6 RUN apt-get update && apt-get install -y \ 7 git \ 8 make \ 9 sudo \ 10 && go get -v -d github.com/holochain/holochain-proto \ 11 && make -C "${GOPATH}/src/github.com/holochain/holochain-proto" deps \ 12 && rm -rf ${GOPATH}/src/github.com/holochain/holochain-proto 13 # Use checked out version of holochain 14 COPY . ${GOPATH}/src/github.com/holochain/holochain-proto 15 RUN make -C "${GOPATH}/src/github.com/holochain/holochain-proto" 16 17 RUN useradd -mUu $uid holochain \ 18 && adduser holochain sudo \ 19 && sed -i -e'/%sudo/s/(ALL:ALL) ALL/(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers 20 USER holochain 21 22 EXPOSE 3141