-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from l0rb/master
add Dockerfile
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM python:3.7-buster | ||
|
||
WORKDIR / | ||
|
||
RUN \ | ||
git clone https://github.com/interrogator/buzz.git buzz && \ | ||
cd buzz && \ | ||
pip install -r requirements.txt | ||
|
||
RUN \ | ||
git clone https://github.com/l0rb/buzzword.git buzzword && \ | ||
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 | ||
|
||
RUN python manage.py migrate | ||
|
||
CMD python manage.py runserver 0.0.0.0:8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters