Last active
February 26, 2018 13:10
-
-
Save yimun/fa188f5a0a387f329fba3363e6480446 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
| FROM ubuntu:16.04 | |
| MAINTAINER ZhangLinwei <yimulinwei@gmail.com> | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN echo 'deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse\n\ | |
| deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse\n\ | |
| deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse\n\ | |
| deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse\n\ | |
| deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse\n\ | |
| deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse\n\ | |
| deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse\n\ | |
| deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse\n\ | |
| deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse\n\ | |
| deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse\n\ | |
| ' > /etc/apt/sources.list | |
| RUN apt-get update && apt-get install -yq \ | |
| git \ | |
| python \ | |
| python-pip \ | |
| python-dev \ | |
| libmysqlclient-dev \ | |
| mysql-server | |
| RUN git clone https://github.com/yimun/r \ | |
| && pip install -r /r/requirements.txt | |
| WORKDIR /r | |
| VOLUME /r/permdir | |
| VOLUME | |
| EXPOSE 5000 | |
| CMD mkdir permdir \ | |
| &&python app.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment