From e26e083eceed850db1a7d10705cb1c458c289732 Mon Sep 17 00:00:00 2001 From: Nick Slowinski Date: Mon, 21 Jun 2021 10:21:26 +0200 Subject: [PATCH] Alpine as base image to minimize image size --- CHANGELOG.md | 3 +++ Dockerfile | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8167a75..73ab524 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ### Added - Readme (EN+DE) added. +### Changed +- An Alpine variant of the base image is now used to minimize the image size. + ## 2021-06-20 ### Added - Default start command added - must no longer be provided. diff --git a/Dockerfile b/Dockerfile index a8e62e1..0dbed6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,9 +15,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -FROM php:8.0-fpm +FROM php:8.0-fpm-alpine ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN apt-get update && apt-get install -y procps && rm -rf /var/lib/apt/lists/* RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \ install-php-extensions zip ssh2 pdo_mysql mysqli COPY docker-php-entrypoint-custom /usr/local/bin/