Skip to content

Instantly share code, notes, and snippets.

@yimun
Last active February 26, 2018 13:10
Show Gist options
  • Select an option

  • Save yimun/fa188f5a0a387f329fba3363e6480446 to your computer and use it in GitHub Desktop.

Select an option

Save yimun/fa188f5a0a387f329fba3363e6480446 to your computer and use it in GitHub Desktop.
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