-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (16 loc) · 815 Bytes
/
Dockerfile
File metadata and controls
24 lines (16 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM alpine:3.12
LABEL maintainer="https://fedorafans.com <hossein.a97@gmail.com>"
# ---------------- #
# Installation #
# ---------------- #
# Install and setup all prerequisites
RUN apk add --no-cache gcc g++ python3 py3-pip python3-dev supervisor &&\
rm -rf /var/cache/apk/* &&\
pip3 install numpy &&\
pip3 install haproxystats &&\
mkdir -p /etc/haproxystats /var/lib/haproxy /var/log/supervisor
COPY ./conf_files/supervisor/ /etc/supervisor.d/
# -------- #
# Run! #
# -------- #
CMD ["/usr/bin/supervisord", "--nodaemon", "--configuration", "/etc/supervisord.conf"]