Fix some docker image issues preventing startup

This commit is contained in:
Scott Hussey 2017-07-18 13:35:56 -05:00
parent c09b86c213
commit 32b2db4c8e
2 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@ FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
ENV container docker
ENV PORT 9000
RUN apt -qq update && \
apt -y install git \
@ -39,7 +40,7 @@ COPY . /tmp/drydock
WORKDIR /tmp/drydock
RUN python3 setup.py install
EXPOSE 8000
EXPOSE $PORT
ENTRYPOINT ["./entrypoint.sh"]

View File

@ -2,7 +2,7 @@
set -ex
CMD="drydock"
PORT="8000"
PORT=${PORT:-9000}
if [ "$1" = 'server' ]; then
exec uwsgi --http :${PORT} -w drydock_provisioner.drydock --callable drydock --enable-threads -L --pyargv "--config-file /etc/drydock/drydock.conf"