1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM ubuntu:22.10
RUN \
apt-get update && \
apt-get install -y supervisor && \
rm -rf /var/lib/apt/lists/* && \
sed -i 's/^\(\[supervisord\]\)$/\1\nnodaemon=true/' /etc/supervisor/supervisord.conf && \
sed -i 's/chmod=0700/;chmod=0700/' /etc/supervisor/supervisord.conf && \
mkdir -p /mnt/cgi && mkdir -p /mnt/cgi/logs
VOLUME /mnt/cgi/logs
WORKDIR /mnt/cgi
ADD ./zero /mnt/cgi/zero
ADD ./zero.conf /etc/supervisor/conf.d/zero.conf
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
|