Update Dockerfile

This commit is contained in:
Supan Adit Pratama 2023-08-26 17:10:38 +07:00 committed by GitHub
parent 399db0b550
commit 9a32ce701e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,20 +2,7 @@ FROM php:7.4-apache
RUN apt-get update RUN apt-get update
# 1. development packages
RUN apt-get install -y git zip RUN apt-get install -y git zip
# curl \
# sudo \
# unzip \
# libicu-dev \
# libzip-dev \
# libbz2-dev \
# libpng-dev \
# libjpeg-dev \
# libmcrypt-dev \
# libreadline-dev \
# libfreetype6-dev \
# g++
# Set Apache Root # Set Apache Root
ENV APACHE_DOCUMENT_ROOT=/var/www/html/public ENV APACHE_DOCUMENT_ROOT=/var/www/html/public
@ -27,16 +14,6 @@ RUN a2enmod rewrite headers
RUN docker-php-ext-install pdo pdo_mysql RUN docker-php-ext-install pdo pdo_mysql
#RUN docker-php-ext-install \
# bz2 \
# intl \
# iconv \
# bcmath \
# opcache \
# calendar \
# pdo_mysql \
# zip
# Composer # Composer
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
@ -50,4 +27,4 @@ WORKDIR /var/www/html
# Composer install and generate key # Composer install and generate key
RUN composer install && php artisan key:generate RUN composer install && php artisan key:generate
RUN chown -R www-data:www-data /var/www/html RUN chown -R www-data:www-data /var/www/html