mirror of
https://github.com/vbatts/imgsrv.git
synced 2024-11-30 12:05:42 +00:00
Dockerfile: reorg, and use the shared env variables
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
d3761001a9
commit
0edeff0e16
1 changed files with 10 additions and 5 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,11 +1,16 @@
|
||||||
FROM fedora
|
FROM fedora
|
||||||
ENV GOPATH /usr/local
|
|
||||||
EXPOSE 7777
|
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 && \
|
RUN dnf install -y golang git bzr && \
|
||||||
go get github.com/vbatts/imgsrv && \
|
go get github.com/vbatts/imgsrv && \
|
||||||
rm -rf /usr/local/src /usr/local/pkg && \
|
rm -rf /usr/local/src /usr/local/pkg && \
|
||||||
dnf remove -y golang git bzr
|
dnf remove -y golang git bzr
|
||||||
ENV MONGODB_DATABASE filesrv
|
ENTRYPOINT /usr/local/bin/imgsrv \
|
||||||
ENV MONGODB_SERVICE_HOST 127.0.0.1
|
-server \
|
||||||
ENV MONGODB_SERVICE_PORT 27017
|
-mongo-host=$MONGODB_SERVICE_HOST:$MONGODB_SERVICE_PORT \
|
||||||
ENTRYPOINT /usr/local/bin/imgsrv -server -mongo-host=$MONGODB_SERVICE_HOST:$MONGODB_SERVICE_PORT -mongo-db=$MONGODB_DATABASE -mongo-username=$MONGODB_USER -mongo-password=$MONGODB_PASSWORD
|
-mongo-db=$MONGODB_DATABASE \
|
||||||
|
-mongo-username=$DATABASE_USER \
|
||||||
|
-mongo-password=$DATABASE_PASSWORD
|
||||||
|
|
Loading…
Reference in a new issue