1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-11-27 10:35:41 +00:00
imgsrv/Dockerfile

12 lines
420 B
Text
Raw Normal View History

2017-02-06 17:25:03 +00:00
FROM fedora
2017-03-10 17:56:41 +00:00
ENV GOPATH /usr/local
2017-02-06 17:25:03 +00:00
EXPOSE 7777
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 && \
dnf remove -y golang git bzr
ENV MONGO_DB filesrv
ENV MONGO_HOST 127.0.0.1
ENV MONGO_PORT 27017
ENTRYPOINT /usr/local/bin/imgsrv -server -mongo-host=$MONGO_HOST:$MONGO_PORT -mongo-db=$MONGO_DB -mongo-username=$MONGO_USER -mongo-password=$MONGO_PASSWORD