1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-12-02 13:05:40 +00:00
imgsrv/Dockerfile
Vincent Batts 0edeff0e16
Dockerfile: reorg, and use the shared env variables
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-03-22 15:40:40 -04:00

16 lines
497 B
Docker

FROM fedora
EXPOSE 7777
ENV GOPATH /usr/local
ENV MONGODB_DATABASE filesrv
ENV MONGODB_SERVICE_HOST 127.0.0.1
ENV MONGODB_SERVICE_PORT 27017
RUN dnf install -y golang git bzr && \
go get github.com/vbatts/imgsrv && \
rm -rf /usr/local/src /usr/local/pkg && \
dnf remove -y golang git bzr
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