Skip to content

Commit

Permalink
adds entrypoint to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Amdingo committed Mar 14, 2019
1 parent ca56312 commit 53ea6f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
3 changes: 3 additions & 0 deletions service/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

python manage.py run -h 0.0.0.0

0 comments on commit 53ea6f2

Please sign in to comment.