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,17 +3,27 @@ FROM phusion/baseimage:0.9.19
|
|||
|
||||
ENV UPDATED_AT 20161110
|
||||
|
||||
RUN apt-get update -qq && apt-get -qq -y install python2.7-dev memcached python-pip \
|
||||
python-setuptools python-imaging python-mysqldb python-memcache python-ldap \
|
||||
python-urllib3 sqlite3 nginx \
|
||||
vim htop net-tools psmisc git wget curl && \
|
||||
pip install -U wheel && pip install click termcolor prettytable colorlog
|
||||
RUN apt-get update -qq && apt-get -qq -y install memcached sqlite3 nginx \
|
||||
python2.7-dev python-imaging python-ldap python-mysqldb
|
||||
|
||||
# Utility tools
|
||||
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
|
||||
|
||||
RUN mkdir -p /etc/service/memcached && \
|
||||
mv /services/memcached.sh /etc/service/memcached/run && \
|
||||
mkdir -p /etc/service/nginx && \
|
||||
mv /services/memcached.sh /etc/service/memcached/run
|
||||
|
||||
RUN mkdir -p /etc/service/nginx && \
|
||||
rm -f /etc/nginx/sites-enabled/* /etc/nginx/conf.d/* && \
|
||||
mv /services/nginx.conf /etc/nginx/nginx.conf && \
|
||||
mv /services/nginx.sh /etc/service/nginx/run
|
||||
|
|
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 seafile.nginx.conf /etc/nginx/sites-enabled/seafile.nginx.conf
|
||||
|
||||
CMD ["/sbin/my_init", "--", "bash", "-l"]
|
||||
|
|
Loading…
Reference in a new issue