diff --git a/service/Dockerfile b/service/Dockerfile index 6a371c7..e5b3f7e 100644 --- a/service/Dockerfile +++ b/service/Dockerfile @@ -13,8 +13,11 @@ WORKDIR /usr/src/app COPY ./requirements.txt /usr/src/app/requirements.txt RUN pip install -r requirements.txt +# add a bash script +COPY ./entrypoint.sh /usr/src/app/entrypoint.sh + # add app COPY . /usr/src/app # run server -CMD ["python manage.py run"] +CMD ["/usr/src/app/entrypoint.sh"] diff --git a/service/entrypoint.sh b/service/entrypoint.sh new file mode 100755 index 0000000..167e0af --- /dev/null +++ b/service/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +python manage.py run -h 0.0.0.0