Skip to content

Commit

Permalink
(pC-1709) internalize start sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Ledoux authored and ledoux committed May 28, 2019
1 parent 1dda082 commit 88d680c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ services:
build:
context: ./api
dockerfile: ../dockerfiles/flask/Dockerfile
command: >
bash -c "set -x;
cd /opt/services/flaskapp/src;
pip install -r ./requirements.txt;
python -m nltk.downloader punkt stopwords;
while true; do python app.py; done;"
volumes:
- ./api:/opt/services/flaskapp/src
- type: bind
Expand Down
2 changes: 0 additions & 2 deletions dockerfiles/flask/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ FROM python:3
ENV PYTHONUNBUFFERED 1
WORKDIR /usr/local/bin
COPY ./requirements.txt ./
COPY ./start.sh ./
RUN pip install -r ./requirements.txt
RUN python -m nltk.downloader punkt stopwords
EXPOSE 5000
CMD ./start.sh

0 comments on commit 88d680c

Please sign in to comment.