lbry-docker/reflector.go/compile/Dockerfile
Leopere 83b7e6b248 added baseline Dockerfile and start.sh
These should contain a good majority of the early stage work.
Lots of debugging potentially ahead
2018-10-08 18:20:54 -04:00

21 lines
699 B
Docker

## base image for github.com/lbryio/reflector.go release binaries
FROM golang:1.11.1
MAINTAINER chamunks [at] gmail [dot] com
ADD start.sh /usr/local/bin/start
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint
RUN adduser reflector --gecos GECOS --shell /bin/bash --disabled-password --home /data/
RUN go get -u github.com/lbryio/reflector.go && \
cd "$(go env GOPATH)/src/github.com/lbryio/reflector.go" && \
make && \
mv ./bin/prism-bin /usr/bin/prism-bin && \
chmod +x /usr/bin/prism-bin
RUN wget -O /data/config.tmpl https://raw.githubusercontent.com/lbryio/reflector.go/master/config.tmpl && \
chown -R 1000:1000 /data/config.tmpl
USER reflector
CMD ["start"]