Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db1bfcfc authored by Felix Ableitner's avatar Felix Ableitner
Browse files

Revert "Use fpm-alpine as base image, run as non-root (fixes #10)"

This reverts commit 9c7661c3.
parent 9c7661c3
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
FROM php:7-fpm-alpine
FROM php:7-apache-stretch
ARG DOMAIN=welcome.ecloud.global
LABEL maintainer "thilo@e.email"
COPY htdocs /var/www/html/
@@ -10,12 +10,11 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
# copy composer executable from official Docker image
# https://hub.docker.com/_/composer
COPY --from=composer:1.8 /usr/bin/composer /usr/bin/composer
RUN apk --no-cache add --virtual composer-deps git unzip \
RUN apt-get update && apt-get install -y --no-install-recommends git unzip \
 # these params are recommended for installing untrusted extensions
 # https://getcomposer.org/doc/faqs/how-to-install-untrusted-packages-safely.md
 && composer require --no-plugins --no-scripts pear/mail pear/net_smtp pear/auth_sasl pear/mail_mime \
 && apk del composer-deps \
 && apt-get remove -y git unzip \
 && rm -rf /var/lib/apt/lists/* \
 # composer shouldnt be present in production setups
 && rm /usr/bin/composer

USER www-data