update dockerfile

pull/530/head
wangfeng7399 2017-01-13 15:43:51 +08:00
parent dc4c37afb6
commit 0979480103
2 changed files with 3 additions and 1 deletions

1
.python-version Normal file
View File

@ -0,0 +1 @@
system

View File

@ -6,7 +6,8 @@ MAINTAINER Jumpserver Team <ibuler@qq.com>
COPY . /opt/jumpserver
WORKDIR /opt/jumpserver
RUN cp config_example.py config.py
#RUN pip install -r requirements.txt -i https://pypi.doubanio.com/simple
RUN rm -f db.sqlite3 && cd utils && sh make_migrations.sh && sh init_db.sh
EXPOSE 8080
CMD redis-server utils/redis.conf && python run_server.py
CMD redis-server utils/redis.conf && python run_server.py