diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1caf262 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +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 diff --git a/README.md b/README.md index a13f07f..412db6f 100644 --- a/README.md +++ b/README.md @@ -51,15 +51,6 @@ then you can drop that flag out, for quicker lolzing: 2013/02/12 13:00:29 New Image!: http://hurp.til.derp.com:7777/f/lolz.gif -Dependencies ------------- - - go get launchpad.net/goyaml - go get labix.org/v2/mgo - -and put this imgsrv in your GOPATH, -since it references itself. - Building --------