2017-02-06 17:25:03 +00:00
|
|
|
FROM fedora
|
|
|
|
EXPOSE 7777
|
2017-03-22 19:40:40 +00:00
|
|
|
ENV GOPATH /usr/local
|
|
|
|
ENV MONGODB_DATABASE filesrv
|
|
|
|
ENV MONGODB_SERVICE_HOST 127.0.0.1
|
|
|
|
ENV MONGODB_SERVICE_PORT 27017
|
2017-03-10 19:08:38 +00:00
|
|
|
RUN dnf install -y golang git bzr && \
|
2017-03-10 17:56:41 +00:00
|
|
|
go get github.com/vbatts/imgsrv && \
|
|
|
|
rm -rf /usr/local/src /usr/local/pkg && \
|
2017-03-10 19:08:38 +00:00
|
|
|
dnf remove -y golang git bzr
|
2017-03-22 19:40:40 +00:00
|
|
|
ENTRYPOINT /usr/local/bin/imgsrv \
|
|
|
|
-server \
|
|
|
|
-mongo-host=$MONGODB_SERVICE_HOST:$MONGODB_SERVICE_PORT \
|
|
|
|
-mongo-db=$MONGODB_DATABASE \
|
|
|
|
-mongo-username=$DATABASE_USER \
|
|
|
|
-mongo-password=$DATABASE_PASSWORD
|