UPD: i like it now.
This commit is contained in:
25
Dockerfile
25
Dockerfile
@@ -1,20 +1,33 @@
|
||||
FROM fedora
|
||||
|
||||
LABEL maintainer="Jens Kleineheismann <heinzel@heinzelwelt.de>"
|
||||
|
||||
ARG APPLICATION_NAME=django-test
|
||||
ARG APPLICATION_SRC=src/${APPLICATION_NAME}
|
||||
|
||||
RUN dnf -y update && \
|
||||
dnf -y install procps-ng && \
|
||||
dnf -y install procps-ng iproute net-tools && \
|
||||
dnf -y install httpd && \
|
||||
dnf -y install python3-mod_wsgi && \
|
||||
dnf clean all
|
||||
|
||||
COPY container-files/httpd-layer/ /
|
||||
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
|
||||
|
||||
COPY src/django-test /srv/src/django-test
|
||||
COPY container-files/django-test-layer/ /
|
||||
RUN /srv/bin/setup-django-test.sh /srv/django-test /srv/src/django-test
|
||||
COPY container-filesystem/ /
|
||||
COPY $APPLICATION_SRC /srv/${APPLICATION_NAME}/src/${APPLICATION_NAME}
|
||||
|
||||
COPY container-files/docker-entrypoint.sh /
|
||||
RUN ln -s ${APPLICATION_NAME} /srv/application && \
|
||||
/setup-application.sh /srv/${APPLICATION_NAME} \
|
||||
/srv/${APPLICATION_NAME}/src/${APPLICATION_NAME} && \
|
||||
rm /setup-application.sh
|
||||
|
||||
EXPOSE 80/tcp
|
||||
ENV LOG_LEVEL error
|
||||
|
||||
USER apache
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["--"]
|
||||
|
||||
Reference in New Issue
Block a user