2018-11-13 08:18:25 +00:00
|
|
|
FROM registry.fit2cloud.com/public/python:v3
|
2018-11-13 07:57:44 +00:00
|
|
|
MAINTAINER Jumpserver Team <ibuler@qq.com>
|
|
|
|
|
2022-05-30 03:03:48 +00:00
|
|
|
ENV LANG=en_US.UTF-8
|
|
|
|
|
2018-11-13 07:57:44 +00:00
|
|
|
WORKDIR /opt/jumpserver
|
|
|
|
RUN useradd jumpserver
|
|
|
|
|
|
|
|
COPY ./requirements /tmp/requirements
|
|
|
|
|
2021-01-14 14:24:58 +00:00
|
|
|
RUN wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo \
|
|
|
|
&& sed -i 's@/centos/@/centos-vault/@g' /etc/yum.repos.d/CentOS-Base.repo \
|
|
|
|
&& sed -i 's@$releasever@6.10@g' /etc/yum.repos.d/CentOS-Base.repo
|
|
|
|
|
2019-05-21 09:46:39 +00:00
|
|
|
RUN yum -y install epel-release && \
|
|
|
|
echo -e "[mysql]\nname=mysql\nbaseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql57-community-el6/\ngpgcheck=0\nenabled=1" > /etc/yum.repos.d/mysql.repo
|
2019-04-02 08:25:39 +00:00
|
|
|
RUN cd /tmp/requirements && yum -y install $(cat rpm_requirements.txt)
|
2020-09-01 06:52:37 +00:00
|
|
|
RUN cd /tmp/requirements && pip install --upgrade pip setuptools==49.6.0 && pip install wheel && \
|
2020-04-26 14:40:56 +00:00
|
|
|
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt || pip install -r requirements.txt
|
2019-04-02 08:25:39 +00:00
|
|
|
RUN mkdir -p /root/.ssh/ && echo -e "Host *\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile /dev/null" > /root/.ssh/config
|
2018-11-13 07:57:44 +00:00
|
|
|
|
|
|
|
COPY . /opt/jumpserver
|
2019-01-17 12:26:47 +00:00
|
|
|
RUN echo > config.yml
|
2018-11-13 07:57:44 +00:00
|
|
|
VOLUME /opt/jumpserver/data
|
|
|
|
VOLUME /opt/jumpserver/logs
|
|
|
|
|
2019-09-27 02:36:06 +00:00
|
|
|
EXPOSE 8070
|
2018-11-13 07:57:44 +00:00
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|