diff options
author | Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com> | 2021-03-01 14:00:50 +0100 |
---|---|---|
committer | Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com> | 2021-03-05 10:34:22 +0100 |
commit | 3a379f80dd6df7ea28210e46c2cea81a64b95534 (patch) | |
tree | 7d576ffb18dc2bc42ab865af8bdd1f57313e899d /Dockerfile | |
parent | b4c81d195c09cc2a7623316d417de7624f2b6bb2 (diff) |
move httpserver from pnf-simulator repo to nf-simulator/pm-https-server directly.
Change-Id: I80b7db9dbe02389cb2a81cdbfb201830349ca5b7
Issue-ID: INT-1869
Signed-off-by: Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2a86bfa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM httpd:2.4 + +RUN apt-get update \ + && apt-get -y install vim libapache2-mod-php php php-curl \ + && rm -rf /var/lib/apt/lists/* \ + && a2enmod mpm_prefork \ + && a2dismod mpm_event \ + && a2enmod rewrite \ + && a2enmod ssl + +ENV APACHE_LOG_DIR /var/log/apache2 +ENV APACHE_LOCK_DIR /var/lock/apache2 +ENV APACHE_PID_FILE /var/run/apache2.pid + +COPY --chown=root:root target/ / + +RUN chmod 644 /usr/local/apache2/passwd/.htpasswd \ + && chmod 644 /usr/local/apache2/conf/httpd.conf \ + && chmod 644 /usr/lib/x86_64-linux-gnu/libjwt.so.1 \ + && chmod 644 /usr/local/apache2/modules/mod_authnz_jwt.so \ + && touch /usr/local/apache2/htdocs/index.html +CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] |