From d46ccb4e73a44d060d4b93253bc1d2331a23681d Mon Sep 17 00:00:00 2001 From: amirbagh75 Date: Thu, 3 Jun 2021 10:18:21 +0430 Subject: [PATCH] Alpine: am i joke to you? [Change baseimage from ubuntu to alpine] --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index f32e982..9e77899 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,9 @@ -FROM php:7.4-cli +FROM php:7.4-cli-alpine -RUN apt-get update -RUN apt-get install -y zip libzip-dev libicu-dev +RUN apk add --update --no-cache zip libzip-dev icu-dev RUN docker-php-ext-install zip RUN docker-php-ext-install intl - RUN curl -sS https://getcomposer.org/installer | php -- --version=2.0.9 --install-dir=/usr/local/bin --filename=composer COPY . /app/newsletter @@ -13,6 +11,4 @@ WORKDIR /app/newsletter RUN composer install -RUN apt-get autoremove -y - -ENTRYPOINT ["php"] \ No newline at end of file +ENTRYPOINT ["php"]