Skip to content

Commit

Permalink
simplify dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
interrogator committed Nov 27, 2019
1 parent 6f0973f commit 765c20f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ RUN \
cd buzzword && \
pip install -r requirements.txt

RUN pip install dash_bootstrap_components

WORKDIR /buzzword

RUN \
cp .env.example .env && \
cp corpora.json.example corpora.json && \
sed -i 's!dtrt/do-the-right-thing-parsed!/buzz/dtrt/do-the-right-thing-parsed!' corpora.json && \
sed -i '0,/disabled/! s/"disabled": false/"disabled": true/' corpora.json
sed -i 's!dtrt/do-the-right-thing-parsed!/buzz/dtrt/do-the-right-thing-parsed!' corpora.json

RUN python manage.py migrate

Expand Down
2 changes: 1 addition & 1 deletion corpora.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"desc": "Text of the Unabomber's manifesto",
"len": 37347,
"add_governor": false,
"disabled": false,
"disabled": true,
"date": "1995",
"load": true,
"url": "https://en.wikipedia.org/wiki/Ted_Kaczynski#Industrial_Society_and_Its_Future"
Expand Down

0 comments on commit 765c20f

Please sign in to comment.