-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerize bot, set up solitary server using docker-compose
- Loading branch information
Showing
6 changed files
with
41 additions
and
6 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,23 @@ | ||
FROM python:3.7-slim | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install enchant -y | ||
|
||
RUN apt-get install gcc -y | ||
|
||
COPY ./requirements.txt /app/requirements.txt | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
RUN python -m nltk.downloader punkt | ||
|
||
RUN python -m spacy download en_core_web_sm | ||
|
||
COPY . /app | ||
|
||
RUN pip install -e . | ||
|
||
RUN python -m src.bot.bot |
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,10 @@ | ||
version: '3.3' | ||
|
||
services: | ||
crowmaster: | ||
image: crowmaster:1.0 | ||
build: | ||
context: . | ||
environment: | ||
- ENV=TEST | ||
- TST_SUBS=test |
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
dotenv | ||
python-dotenv | ||
praw | ||
pandas | ||
sklearn | ||
pandas==0.24.2 | ||
numpy==1.16.4 | ||
scipy==1.3.0 | ||
spacy | ||
deeppavlov | ||
pytest |
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
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
Empty file.