INIT
This commit is contained in:
33
Dockerfile
Normal file
33
Dockerfile
Normal 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 ["--"]
|
||||
Reference in New Issue
Block a user