diff --git a/.gitignore b/.gitignore index 5526fd8..40a6ad3 100644 --- a/.gitignore +++ b/.gitignore @@ -102,3 +102,6 @@ $RECYCLE.BIN/ *.lnk # End of https://www.gitignore.io/api/vim,linux,macos,windows,visualstudiocode +.idea +local +local-docker-build.bat diff --git a/Dockerfile b/Dockerfile index a72f5d8..8f0609d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,26 +1,24 @@ -FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3-298.1618432845 +FROM registry.access.redhat.com/ubi9:9.2-755 LABEL name="spaship/httpd" \ summary="Apache Http Server for SPAship" \ description="This a runtime image for SPAship apps" \ - maintainer="Kun Yan " + maintainer="Arkaprovo Bhattacharjee " EXPOSE 8080 -RUN microdnf install -y --nodocs httpd && microdnf clean all - -RUN sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf \ - && sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf \ - && chgrp -R 0 /var/log/httpd /var/run/httpd \ - && chmod -R g=u /var/log/httpd /var/run/httpd +RUN dnf install -y --nodocs --allowerasing coreutils httpd vim-minimal && \ + dnf clean all && \ + sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf && \ + sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf && \ + chgrp -R 0 /var/log/httpd /var/run/httpd && \ + chmod -R g=u /var/log/httpd /var/run/httpd && \ + ln -sf /dev/stdout /var/log/httpd/access_log && \ + ln -sf /dev/stderr /var/log/httpd/error_log ADD ./httpd.conf /etc/httpd/conf/ ADD ./conf.d/ /etc/httpd/conf.d/ -# forward request and error logs to docker log collector -RUN ln -sf /dev/stdout /var/log/httpd/access_log \ - && ln -sf /dev/stderr /var/log/httpd/error_log - USER 1001 CMD httpd -D FOREGROUND