You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
ARG VERSION="latest"
|
|
FROM "registry.cabillot.eu/www/phpapache:${VERSION}"
|
|
LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
|
|
|
|
# TODO: pouvoir spécifier le UID/GID pour accéder au download
|
|
COPY "./" "/var/www/mydl.cabillot.eu/"
|
|
WORKDIR "/var/www/mydl.cabillot.eu"
|
|
|
|
RUN export DEBIAN_FRONTEND="noninteractive" && \
|
|
export BUILD_PACKAGES="libssl-dev git unzip" && \
|
|
apt-get -qq update && \
|
|
apt-get -qq --yes install ${BUILD_PACKAGES} && \
|
|
pecl install mongodb && \
|
|
docker-php-ext-enable mongodb && \
|
|
groupadd -g "1007" "nginx" && \
|
|
usermod -a -G "nginx" "www-data" && \
|
|
curl "https://getcomposer.org/composer.phar" -o "composer.phar" && \
|
|
php "composer.phar" install && \
|
|
apt-get -qq --yes remove --purge ${BUILD_PACKAGES} && \
|
|
apt-get -qq --yes clean all && \
|
|
rm -rf "/usr/share/doc/"* \
|
|
"/var/cache/"* \
|
|
"/var/lib/apt/lists/"* \
|
|
"/usr/src/"* \
|
|
"/var/log/"{apt/*,dpkg.log} \
|
|
"/var/www/html" \
|
|
"/tmp/"* && \
|
|
ln -s "/var/www/mydl.cabillot.eu/root" "/var/www/html"
|
|
|
|
# TODO : ajouter les HEADER HTTPS sécurisés dans le .htaccess
|