Skip to content

Commit

Permalink
optimize docker usage (PokemonGoF#1257)
Browse files Browse the repository at this point in the history
* update Dockerfile; install missed python-protobuf package; add CMD as a way of defining default arguments for the ENTRYPOINT

* remove CMD command, default config parameter is also set in pokecli.py
  • Loading branch information
joergpatz authored and MFizz committed Jul 29, 2016
1 parent f539d08 commit 6284150
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
.git*
configs/config.json
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
FROM python:2.7-onbuild

ENTRYPOINT ["python", "pokecli.py"]
RUN apt-get update \
&& apt-get install -y python-protobuf

ENTRYPOINT ["python", "pokecli.py"]

0 comments on commit 6284150

Please sign in to comment.