Skip to content

Commit

Permalink
use debian as base (hhyo#2391)
Browse files Browse the repository at this point in the history
* use debian as base

* update base
  • Loading branch information
LeoQuote authored and finovy committed Dec 1, 2023
1 parent 84116c7 commit cd2a53e
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
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/
ARG BASE_IMAGE="hhyo/archery-base:sha-1e06868"
FROM ${BASE_IMAGE}
SHELL ["/bin/bash", "-c"]
COPY . /opt/archery/

WORKDIR /opt/

RUN useradd nginx
#archery
RUN cd /opt \
&& yum -y install nginx \
&& source /opt/venv4archery/bin/activate \
&& pip3 install -r /opt/archery/requirements.txt \
&& pip3 install "redis>=4.1.0" \
RUN apt-get install -yq --no-install-recommends nginx \
&& source venv4archery/bin/activate \
&& pip install -r /opt/archery/requirements.txt \
&& pip install "redis>=4.1.0" \
&& 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/ \
&& yum clean all \
&& rm -rf /var/cache/yum/* \
&& rm -rf ~/.cache
&& apt-get -yq remove gcc curl \
&& apt-get clean \
&& rm -rf /var/cache/apt/* \
&& rm -rf /root/.cache

#port
EXPOSE 9123

#start service
ENTRYPOINT bash /opt/archery/src/docker/startup.sh && bash
ENTRYPOINT ["bash", "/opt/archery/src/docker/startup.sh"]

0 comments on commit cd2a53e

Please sign in to comment.