FIX #1
This commit is contained in:
24
Dockerfile
24
Dockerfile
@@ -3,31 +3,31 @@ FROM fedora
|
||||
LABEL maintainer="Jens Kleineheismann <heinzel@heinzelwelt.de>"
|
||||
|
||||
ARG APPLICATION_NAME=django-test
|
||||
ARG APPLICATION_SRC=src/${APPLICATION_NAME}
|
||||
ARG APPLICATION_SRC=src/django-test
|
||||
|
||||
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 chown apache: /etc/httpd/run && \
|
||||
setcap 'cap_net_bind_service=+ep' /usr/sbin/httpd && \
|
||||
sed -i -e 's:^\(\s.*\)\(CustomLog\s.*\)$:\1#\2:' \
|
||||
/etc/httpd/conf/httpd.conf
|
||||
RUN sed -i -e 's:^\(\s.*\)\(CustomLog\s.*\)$:\1#\2:' \
|
||||
/etc/httpd/conf/httpd.conf
|
||||
|
||||
COPY container-filesystem/ /
|
||||
COPY ${APPLICATION_SRC} /srv/${APPLICATION_NAME}/src/${APPLICATION_NAME}
|
||||
RUN echo 'test -f /etc/bashrc.local && source /etc/bashrc.local' >> /etc/bashrc
|
||||
|
||||
RUN ln -s ${APPLICATION_NAME} /srv/application && \
|
||||
/setup-application.sh /srv/${APPLICATION_NAME} \
|
||||
/srv/${APPLICATION_NAME}/src/${APPLICATION_NAME} && \
|
||||
rm /setup-application.sh
|
||||
COPY src/django-test /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
|
||||
|
||||
USER apache
|
||||
ENV ENABLE_STATUS_ENDPOINTS false
|
||||
ENV DJANGO_SYNCDB false
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["--"]
|
||||
|
||||
Reference in New Issue
Block a user