forked from hhyo/Archery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (24 loc) · 834 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 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/ \
&& 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"]