mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
Install latest version of pypi.
This commit is contained in:
parent
be3bb8d41e
commit
29bfc5385e
|
@ -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"]
|
||||||
|
|
11
image/base/requirements.in
Normal file
11
image/base/requirements.in
Normal 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
|
17
image/base/requirements.txt
Normal file
17
image/base/requirements.txt
Normal 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
|
|
@ -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"]
|
|
||||||
|
|
Loading…
Reference in a new issue