forked from vishakha-lall/MapBot
-
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.
- Loading branch information
1 parent
eafbd37
commit 42f1536
Showing
4 changed files
with
21 additions
and
8 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
__pycache__ | ||
.dockerignore | ||
stanford-corenlp-full-2018-10-05/ |
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,9 +1,12 @@ | ||
FROM python:3.6 | ||
FROM python:3.6-slim-stretch | ||
|
||
RUN apt-get update && apt-get install -y git wget unzip | ||
|
||
COPY requirements.txt ./requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
COPY . /usr/var/MapBot | ||
WORKDIR /usr/var/MapBot | ||
COPY docker-entrypoint.sh /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/bin/sh","./docker-entrypoint.sh"] | ||
WORKDIR /usr/var/MapBot | ||
ENTRYPOINT ["/bin/sh","/usr/local/bin/docker-entrypoint.sh"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ ! -d MapBot ]; then | ||
git clone https://github.com/vishakha-lall/MapBot.git -b gssoc-master | ||
cd MapBot | ||
else | ||
cd MapBot | ||
git pull | ||
fi | ||
|
||
export GCLOUD_API_KEY=<YOUR_API_KEY_HERE> | ||
|
||
docker-compose up -d && docker attach mapbot_bot |