Skip to content

Instantly share code, notes, and snippets.

@morishin
Created December 19, 2015 18:36
Show Gist options
  • Save morishin/4cf1cd2c05d0be488479 to your computer and use it in GitHub Desktop.
Save morishin/4cf1cd2c05d0be488479 to your computer and use it in GitHub Desktop.
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