lbry-docker/reflector.go/Dockerfile

29 lines
1,019 B
Text
Raw Normal View History

2018-10-08 22:53:51 +02:00
## base image for github.com/lbryio/reflector.go release binaries
2018-10-15 08:59:17 +02:00
FROM golang:1.11.1 as builder
LABEL MAINTAINER="chamunks [at] gmail [dot] com"
2018-10-08 22:53:51 +02:00
2018-10-15 08:59:17 +02:00
RUN export GOROOT=$GOPATH/bin && \
go get -v -u github.com/lbryio/reflector.go && \
cd "/go/src/github.com/lbryio/reflector.go" && \
make && \
mv ./bin/prism-bin /usr/bin/prism-bin && \
chmod +x /usr/bin/prism-bin
## base image for github.com/lbryio/reflector.go release binaries
FROM ubuntu:18:04 as app
2018-10-15 22:22:38 +02:00
LABEL MAINTAINER="chamunks [at] gmail [dot] com"
2018-10-15 08:59:17 +02:00
COPY /go/src/github.com/lbryio/reflector.go/bin/prism-bin /usr/bin/prism-bin
COPY start.sh /usr/local/bin/start
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
2018-10-08 22:53:51 +02:00
RUN adduser reflector --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \
apt-get update && \
2018-10-15 08:59:17 +02:00
apt-get -y install && \
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"]