github.com/fern4lvarez/piladb@v0.2.0-alpha.20180407/dev/Dockerfile (about) 1 # piladb Dockerfile 2 # 3 # https://github.com/fern4lvarez/piladbdb 4 # 5 6 # Pull base image. 7 FROM golang:latest 8 9 # Install basic development tools. 10 RUN \ 11 apt-get update && \ 12 apt-get install -y git vim httpie 13 14 # Install dependencies. 15 RUN \ 16 go get github.com/golang/lint/golint 17 18 # Install piladb. 19 RUN \ 20 go get github.com/fern4lvarez/piladb && \ 21 cd /go/src/github.com/fern4lvarez/piladb && \ 22 make all 23 24 # Install piladb.sh utilities. 25 RUN \ 26 echo "source <(curl -s https://raw.githubusercontent.com/oscillatingworks/piladb-sh/master/piladb.sh)\nexport PILADB_HOST=127.0.0.1:1205\n" >> /root/.bashrc 27 28 # Define mountable directories. 29 VOLUME ["/go/src/github.com/fern4lvarez/piladb"] 30 31 # Define working directory. 32 WORKDIR /go/src/github.com/fern4lvarez/piladb 33 34 # Define default command. 35 CMD ["/go/bin/pilad"] 36 37 # Expose port. 38 EXPOSE 1205