Add volume declaration and split launch command to entrypoint declaration.

This commit is contained in:
Christopher Snowhill 2016-10-02 23:32:23 -07:00
parent 301e50cbfa
commit 970f06ce7d

View File

@ -25,5 +25,8 @@ RUN GITHUB_REPO="https://github.com/mattn/goreman" \
# goreman setup # goreman setup
RUN echo "web: gosu dummy /bin/busybox httpd -f -p 8080 -h /webui-aria2\nbackend: gosu dummy /usr/bin/aria2c --enable-rpc --rpc-listen-all --dir=/data" > Procfile RUN echo "web: gosu dummy /bin/busybox httpd -f -p 8080 -h /webui-aria2\nbackend: gosu dummy /usr/bin/aria2c --enable-rpc --rpc-listen-all --dir=/data" > Procfile
VOLUME /data
EXPOSE 8080 6800 EXPOSE 8080 6800
CMD ["goreman", "start"]
CMD ["start"]
ENTRYPOINT ["/usr/local/bin/goreman"]