This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (55 loc) · 1.41 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Citadel as Docker image build using easyinstall
#
FROM debian:stretch as build
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
curl \
g++ \
gettext \
libcurl4-openssl-dev \
libexpat1-dev \
libical-dev \
libldap2-dev \
libssl-dev \
shared-mime-info \
supervisor \
zlib1g-dev && \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
COPY install /root/install
RUN /root/install
FROM debian:stretch
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install --no-install-recommends -y \
rsyslog \
gettext \
libc6 \
libcurl3 \
libev4 \
libexpat1 \
libical2 \
libldap-2.4.2 \
libssl1.1 \
netbase \
openssl \
shared-mime-info \
supervisor \
zlib1g && \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
COPY --from=build /usr/local/citadel/ /usr/local/citadel/
COPY --from=build /usr/local/webcit/ /usr/local/webcit/
COPY --from=build /usr/local/ctdlsupport/ /usr/local/ctdlsupport/
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY stop-supervisor.sh /etc/supervisor/stop-supervisor.sh
COPY rsyslog.conf /etc/rsyslog.conf
COPY start.sh /scripts/start.sh
RUN mkdir /var/log/supervisor_log
EXPOSE 25 80 110 143 465 587 993 995
#ENTRYPOINT ["/usr/bin/supervisord","-c","/etc/supervisor/supervisord.conf"]
ENTRYPOINT ["/scripts/start.sh"]