Last active
April 18, 2018 18:42
-
-
Save chazer/71312d7533a8d3bf6699f9ee71139eb1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Docker project for antminer-monitor |
This file contains hidden or 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
version: '3' | |
services: | |
app: | |
build: . | |
ports: | |
- 5000:5000 |
This file contains hidden or 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
FROM python:alpine | |
RUN apk add --no-cache git | |
WORKDIR /app | |
RUN git clone https://github.com/anselal/antminer-monitor.git . \ | |
&& easy_install pip | |
RUN set -x \ | |
&& python -m pip install -r requirements.txt \ | |
&& python create_db.py | |
EXPOSE 5000 | |
CMD python manager.py runserver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment