Install latest version of pypi.

This commit is contained in:
Shuai Lin 2016-11-12 15:50:20 +08:00
parent be3bb8d41e
commit 29bfc5385e
5 changed files with 49 additions and 13 deletions

View file

@ -3,19 +3,29 @@ FROM phusion/baseimage:0.9.19
ENV UPDATED_AT 20161110 ENV UPDATED_AT 20161110
RUN apt-get update -qq && apt-get -qq -y install python2.7-dev memcached python-pip \ RUN apt-get update -qq && apt-get -qq -y install memcached sqlite3 nginx \
python-setuptools python-imaging python-mysqldb python-memcache python-ldap \ python2.7-dev python-imaging python-ldap python-mysqldb
python-urllib3 sqlite3 nginx \
vim htop net-tools psmisc git wget curl && \ # Utility tools
pip install -U wheel && pip install click termcolor prettytable colorlog RUN apt-get install -qq -y vim htop net-tools psmisc git wget curl
# Install latest version of pip & wheel
RUN curl -sSL -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
python /tmp/get-pip.py && \
rm -rf /tmp/get-pip.py && \
pip install -U wheel
ADD requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
COPY services /services COPY services /services
RUN mkdir -p /etc/service/memcached && \ RUN mkdir -p /etc/service/memcached && \
mv /services/memcached.sh /etc/service/memcached/run && \ mv /services/memcached.sh /etc/service/memcached/run
mkdir -p /etc/service/nginx && \
rm -f /etc/nginx/sites-enabled/* /etc/nginx/conf.d/* && \ RUN mkdir -p /etc/service/nginx && \
mv /services/nginx.conf /etc/nginx/nginx.conf && \ rm -f /etc/nginx/sites-enabled/* /etc/nginx/conf.d/* && \
mv /services/nginx.sh /etc/service/nginx/run mv /services/nginx.conf /etc/nginx/nginx.conf && \
mv /services/nginx.sh /etc/service/nginx/run
CMD ["/sbin/my_init", "--", "bash", "-l"] CMD ["/sbin/my_init", "--", "bash", "-l"]

View file

@ -0,0 +1,11 @@
# -*- mode: conf -*-
# Required by seafile/seahub
python-memcached==1.58
urllib3==1.19
# Utility libraries
click==6.6
termcolor==1.1.0
prettytable==0.7.2
colorlog==2.7.0

View file

@ -0,0 +1,17 @@
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --output-file requirements.txt requirements.in
#
click==6.6
colorlog==2.7.0
prettytable==0.7.2
python-memcached==1.58
six==1.10.0 # via python-memcached
termcolor==1.1.0
urllib3==1.19
# The following packages are commented out because they are
# considered to be unsafe in a requirements file:
# setuptools # via python-ldap

View file

@ -12,5 +12,3 @@ RUN mkdir -p /etc/my_init.d
ADD create_data_links.sh /etc/my_init.d/create_data_links.sh ADD create_data_links.sh /etc/my_init.d/create_data_links.sh
ADD seafile.nginx.conf /etc/nginx/sites-enabled/seafile.nginx.conf ADD seafile.nginx.conf /etc/nginx/sites-enabled/seafile.nginx.conf
CMD ["/sbin/my_init", "--", "bash", "-l"]

View file

@ -65,7 +65,7 @@ bootstrap() {
start() { start() {
set_volumes set_volumes
docker run --rm -it --name seafile $volumes $image # /scripts/start.py docker run --rm -it --name seafile $volumes $image /scripts/start.py
} }
enter() { enter() {