jumpserver/Dockerfile

23 lines
578 B
Docker
Raw Normal View History

2017-05-19 16:19:10 +00:00
FROM jumpserver/python:v3.6.1
2017-05-17 01:42:32 +00:00
LABEL 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
RUN cd requirements && pip install -r requirements.txt
2017-05-19 16:19:10 +00:00
RUN rm -f data/db.sqlite3
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