This commit is contained in:
2020-04-22 12:57:02 +02:00
commit 81c4b923b5
26 changed files with 734 additions and 0 deletions

33
Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
FROM fedora
LABEL maintainer="Jens Kleineheismann <heinzel@alpenverein-karlsruhe.de>"
ARG APPLICATION_NAME=django-dav-events
ARG APPLICATION_SRC=src/${APPLICATION_NAME}
RUN dnf -y update && \
dnf -y install procps-ng iproute net-tools && \
dnf -y install httpd && \
dnf -y install mod_ssl certbot && \
dnf -y install python3-mod_wsgi && \
dnf clean all
RUN sed -i -e 's:^\(\s.*\)\(CustomLog\s.*\)$:\1#\2:' \
/etc/httpd/conf/httpd.conf
COPY container-filesystem/ /
RUN echo 'test -f /etc/bashrc.local && source /etc/bashrc.local' >> /etc/bashrc
COPY src/django-dav-events /srv/app/src
RUN /setup-app.sh /srv/app/src /srv/app/wsgi && \
rm /setup-app.sh
EXPOSE 80/tcp
EXPOSE 443/tcp
VOLUME /srv/etc
ENV LOG_LEVEL error
ENV ENABLE_STATUS_ENDPOINTS false
ENV DJANGO_SYNCDB false
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["--"]