From 428bb8dd2cf87f89cabf6017bd21a8927dd88b80 Mon Sep 17 00:00:00 2001 From: Gilang Pratama Date: Thu, 23 Nov 2023 20:06:21 +0700 Subject: [PATCH] Change ubuntu base system to alpine base system. --- Dockerfile | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0eaec14..ca5151b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,27 +1,10 @@ -FROM ghcr.io/kangketikonlen/base-engine:1.2 +FROM ghcr.io/kangketikonlen/alpine-engine:latest WORKDIR /var/www/app # copy application code COPY . ./ -# set composer related environment variables -ENV PATH="/composer/vendor/bin:$PATH" \ - COMPOSER_ALLOW_SUPERUSER=1 \ - COMPOSER_VENDOR_DIR=/var/www/app/vendor \ - COMPOSER_HOME=/composer - -# update the repository -RUN apt-get update -y \ - && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \ - && apt install iputils-ping -y \ - && apt install mysql-client -y - -# install composer -RUN curl -sS https://getcomposer.org/installer | \ - php -- --install-dir=/usr/local/bin --filename=composer \ - && composer --ansi --version --no-interaction --no-dev - # add custom php-fpm pool settings, these get written at entrypoint startup ENV FPM_PM_MAX_CHILDREN=73 \ FPM_PM_START_SERVERS=16 \ @@ -63,7 +46,7 @@ COPY .docker/conf/nginx.conf /etc/nginx/nginx.conf COPY .docker/conf/default.conf /etc/nginx/sites-available/default # install composer dependencies -RUN composer install --no-scripts --no-autoloader --ansi --no-interaction \ +RUN composer install --no-dev --no-scripts --no-autoloader --ansi --no-interaction \ && composer dump-autoload -o # install nodejs dependencies