Skip to content

Commit

Permalink
Dockerise
Browse files Browse the repository at this point in the history
  • Loading branch information
Blue committed Jul 9, 2020
1 parent 42a9258 commit 40dd543
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.6

COPY requirements.txt requirements.txt

RUN pip install -U pip wheel setuptools \
&& pip install -r requirements.txt

ADD . .

EXPOSE 8888

CMD python web.py
2 changes: 1 addition & 1 deletion node/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ def compress(inp):


def init_words(dict_file):
with open(os.path.join(os.path.split(__main__.__file__)[0], dict_file)) as words_f:
with open(os.path.join(os.path.split(__main__.__file__)[0], dict_file), encoding="utf-8") as words_f:
return json.load(words_f)
4 changes: 2 additions & 2 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

WARNINGS = True
SAFE = True
DEBUG = True
IS_WEB = False
DEBUG = False
IS_WEB = True

0 comments on commit 40dd543

Please sign in to comment.