Created
December 19, 2015 18:36
-
-
Save morishin/4cf1cd2c05d0be488479 to your computer and use it in GitHub Desktop.
This file contains 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:3 | |
RUN apt-get update && apt-get upgrade -y | |
RUN apt-get install -y libfreetype6-dev libatlas-base-dev liblapack-dev gfortran cron | |
RUN pip install matplotlib | |
RUN pip install pandas | |
RUN pip install bottle | |
RUN mkdir /bitchart-api | |
ADD chart.py /bitchart-api/ | |
ADD task.py /bitchart-api/ | |
RUN echo '* * * * * root python /bitchart-api/task.py' >> /etc/crontab | |
RUN apt-get clean | |
ENV PRODUCTION true | |
ENV PORT 8080 | |
ENV TIME_ZONE Asia/Tokyo | |
EXPOSE ${PORT} | |
CMD cron && python /bitchart-api/task.py && python /bitchart-api/chart.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment