2017-12-21 10:54:29 +00:00
|
|
|
FROM jumpserver/python:3
|
|
|
|
MAINTAINER Jumpserver Team <ibuler@qq.com>
|
2017-01-07 12:07:33 +00:00
|
|
|
|
2017-05-19 16:19:10 +00:00
|
|
|
|
2017-01-07 12:07:33 +00:00
|
|
|
COPY . /opt/jumpserver
|
|
|
|
WORKDIR /opt/jumpserver
|
2017-05-19 16:19:10 +00:00
|
|
|
|
2017-09-14 01:49:42 +00:00
|
|
|
RUN yum -y install epel-release && yum clean all -y
|
|
|
|
RUN cd requirements && yum -y install $(cat rpm_requirements.txt) && yum clean all -y
|
2017-12-21 10:54:29 +00:00
|
|
|
RUN cd requirements && pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
2017-05-19 16:19:10 +00:00
|
|
|
|
2017-05-17 01:42:32 +00:00
|
|
|
RUN rm -r .git
|
|
|
|
RUN rm -f config.py
|
2017-01-07 12:07:33 +00:00
|
|
|
|
2017-05-17 01:42:32 +00:00
|
|
|
VOLUME /opt/jumpserver/data
|
|
|
|
VOLUME /opt/jumpserver/logs
|
|
|
|
|
|
|
|
RUN cp config_docker.py config.py
|
|
|
|
|
2017-01-07 12:07:33 +00:00
|
|
|
EXPOSE 8080
|
2017-05-19 16:19:10 +00:00
|
|
|
CMD cd utils && sh make_migrations.sh && sh init_db.sh && cd .. && python run_server.py
|