Skip to content

Instantly share code, notes, and snippets.

@chazer
Last active April 18, 2018 18:42
Show Gist options
  • Save chazer/71312d7533a8d3bf6699f9ee71139eb1 to your computer and use it in GitHub Desktop.
Save chazer/71312d7533a8d3bf6699f9ee71139eb1 to your computer and use it in GitHub Desktop.
Docker project for antminer-monitor
version: '3'
services:
app:
build: .
ports:
- 5000:5000
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