Update Dockerfile

This commit is contained in:
zhengxie 2016-08-18 17:43:49 +08:00
parent 5c1fcf4b6f
commit cbfd2635df
2 changed files with 5 additions and 38 deletions

35
.gitignore vendored
View File

@ -1,38 +1,3 @@
*.pyc
*~
*#
seahub.db*
local_settings.py
startserver.sh
thirdpart/django
thirdpart/djblets
thirdpart/gunicorn*
thirdpart/*.pth
thirdpart/site.*
restart.sh
settings.py.mysql
settings.py.sqlite
secret_key.py
run-seahub.sh
setenv.sh
pylintrc
.DS_Store
*.mo
media/CACHE
media/custom
media/avatars/*
!media/avatars/default-non-register.jpg
!media/avatars/default.png
!media/default.jpg
!media/groups/default.jpg
static/scripts/dist
logs/
mysite.pid
notification_email.sh
send_user_notifications.sh
shutdown.sh
cscope*
docs/_build/*
deps
ghostdriver.log
seahub/thumbnail/thumb/*

View File

@ -1,12 +1,14 @@
FROM ubuntu:14.04
MAINTAINER Zheng Xie <xie.zheng@seafile.com>
RUN apt-get update
RUN apt-get install -y sudo wget python-pip python-setuptools python-imaging python-mysqldb python-ldap python-urllib3 \
openjdk-7-jre memcached python-memcache pwgen curl openssl poppler-utils libpython2.7 libreoffice \
libreoffice-script-provider-python ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy nginx
# Avoid ERROR: invoke-rc.d: policy-rc.d denied execution of start.
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d
RUN apt-get update
RUN apt-get install -y wget
WORKDIR /root
ADD . /root/