Skip to content

Commit

Permalink
更新dockerfile (#2037)
Browse files Browse the repository at this point in the history
* 变更dockerfile-base

* 变更dockerfile-base

* 更新dockerfile

精简镜像体积

* 增加pip软件源

* Update Dockerfile
  • Loading branch information
peng19832 authored Jan 20, 2023
1 parent b3a08ef commit 1d47bd2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
FROM hhyo/archery-base:sha-bc1191f
FROM hhyo/archery-base:sha-b3a08ef

WORKDIR /opt/archery

ADD http://mirrors.ustc.edu.cn/epel/RPM-GPG-KEY-EPEL-7 /etc/pki/rpm-gpg/
COPY . /opt/archery/

#archery
RUN cd /opt \
&& yum -y install nginx \
&& source /opt/venv4archery/bin/activate \
&& pip3 install -r /opt/archery/requirements.txt \
&& cp /opt/archery/src/docker/nginx.conf /etc/nginx/ \
&& cp /opt/archery/src/docker/supervisord.conf /etc/ \
&& pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r /opt/archery/requirements.txt \
&& cp -f /opt/archery/src/docker/nginx.conf /etc/nginx/ \
&& cp -f /opt/archery/src/docker/supervisord.conf /etc/ \
&& mv /opt/sqladvisor /opt/archery/src/plugins/ \
&& mv /opt/soar /opt/archery/src/plugins/ \
&& mv /opt/my2sql /opt/archery/src/plugins/
&& mv /opt/my2sql /opt/archery/src/plugins/ \
&& yum clean all \
&& rm -rf /var/cache/yum/* \
&& rm -rf ~/.cache

#port
EXPOSE 9123

#start service
ENTRYPOINT bash /opt/archery/src/docker/startup.sh && bash

0 comments on commit 1d47bd2

Please sign in to comment.