Skip to content

Commit

Permalink
Merge pull request 1tayH#21 from nikosch86/master
Browse files Browse the repository at this point in the history
Futureproof: use requirements.txt to install, add default CMD
  • Loading branch information
1tayH authored Sep 7, 2018
2 parents 26d2fa3 + 1e41c3a commit b33191c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM python:2.7-alpine
RUN pip install requests
WORKDIR /
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . /
ENTRYPOINT ["python", "noisy.py"]
ENTRYPOINT ["python", "noisy.py"]
CMD ["--config", "config.json"]
6 changes: 4 additions & 2 deletions Dockerfile.pi
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM python:2.7-slim-stretch
RUN pip install requests
WORKDIR /
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . /
ENTRYPOINT ["python", "noisy.py"]
ENTRYPOINT ["python", "noisy.py"]
CMD ["--config", "config.json"]

0 comments on commit b33191c

Please sign in to comment.