mirror of
https://github.com/supanadit/todo.git
synced 2024-11-14 04:12:18 +00:00
feat: don't need to install php ext
This commit is contained in:
parent
573bec89ba
commit
14bfb8a6ba
20
Dockerfile
20
Dockerfile
@ -27,15 +27,15 @@ RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf
|
|||||||
# Enable Some Apache Mod
|
# Enable Some Apache Mod
|
||||||
RUN a2enmod rewrite headers
|
RUN a2enmod rewrite headers
|
||||||
|
|
||||||
RUN docker-php-ext-install \
|
#RUN docker-php-ext-install \
|
||||||
bz2 \
|
# bz2 \
|
||||||
intl \
|
# intl \
|
||||||
iconv \
|
# iconv \
|
||||||
bcmath \
|
# bcmath \
|
||||||
opcache \
|
# opcache \
|
||||||
calendar \
|
# calendar \
|
||||||
pdo_mysql \
|
# pdo_mysql \
|
||||||
zip
|
# 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
|
||||||
@ -48,6 +48,6 @@ COPY . /var/www/html
|
|||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
# Composer install and generate key
|
# Composer install and generate key
|
||||||
RUN composer install && php artisan key:generate
|
RUN composer install --optimize-autoloader --no-dev && php artisan key:generate
|
||||||
|
|
||||||
RUN chown -R www-data:www-data /var/www/html
|
RUN chown -R www-data:www-data /var/www/html
|
Loading…
Reference in New Issue
Block a user