2017-05-17 01:42:32 +00:00
|
|
|
FROM jumpserver/alpine-py3:v3.4
|
|
|
|
LABEL MAINTAINER Jumpserver Team <ibuler@qq.com>
|
2017-01-07 12:07:33 +00:00
|
|
|
|
|
|
|
COPY . /opt/jumpserver
|
2017-05-17 01:42:32 +00:00
|
|
|
COPY config_docker.py /opt/jumpserver/config.py
|
2017-01-07 12:07:33 +00:00
|
|
|
WORKDIR /opt/jumpserver
|
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 ln -s /usr/bin/pip3 /usr/bin/pip
|
|
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|
|
|
|
RUN cp config_docker.py config.py
|
|
|
|
|
|
|
|
RUN pip install -r requirements/requirements.txt
|
|
|
|
RUN cd utils && sh make_migrations.sh && sh init_db.sh
|
2017-01-07 12:07:33 +00:00
|
|
|
EXPOSE 8080
|
2017-05-17 01:42:32 +00:00
|
|
|
CMD python run_server.py
|