Explorar o código

update base image and add ssl

ksieren %!s(int64=2) %!d(string=hai) anos
pai
achega
df6d5849ae
Modificáronse 1 ficheiros con 10 adicións e 2 borrados
  1. 10 2
      Dockerfile

+ 10 - 2
Dockerfile

@@ -1,8 +1,16 @@
-FROM kerstinsieren/alpine-phpfpm-nginx-baseimage:php74-apache-6
+FROM kerstinsieren/alpine-phpfpm-nginx-baseimage:php74-apache-10
 ENV TZ=Europe/Berlin
+
+WORKDIR /var/www/html
+
+RUN usermod -a -G ssl-cert www-data
+RUN chown -R root:ssl-cert /etc/ssl \
+    && chmod -R 640 /etc/ssl/private \
+    && chmod 640 /etc/ssl/private/apache-selfsigned.key
 COPY . .
 ONBUILD COPY composer.json ./
-USER root
 RUN composer install --no-interaction
+
 RUN chown -R www-data:www-data /var/www/html
+
 USER www-data