-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
28 lines (23 loc) · 802 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
FROM httpd:2.4
ARG radicale
RUN \
[ -z "$radicale" ] && exit; \
apt-get update; \
apt-get -y install python3 python3-pip apache2-dev curl; \
python3 -m pip install --upgrade radicale; \
cd /tmp; \
curl -L 'https://github.com/GrahamDumpleton/mod_wsgi/archive/refs/tags/4.9.0.tar.gz' | tar xz; \
cd mod_wsgi-4.9.0; \
./configure --with-python=$(which python3); \
make; \
cp src/server/.libs/mod_wsgi.so /usr/local/apache2/modules; \
apt-get -y purge apache2-dev curl; \
apt-get -y autoremove; \
rm -rf /var/lib/apt/lists/*; \
rm -rf /tmp/mod_wsgi-4.9.0
COPY etc/httpd.conf /usr/local/apache2/conf/httpd.conf
COPY etc/webdav.conf /usr/local/apache2/conf/webdav.conf
COPY config /etc/config
COPY scripts /opt/scripts
RUN chmod -R +x /opt/scripts
CMD ["/opt/scripts/start"]