mirror of
https://github.com/supanadit/todo.git
synced 2024-11-23 10:46:23 +00:00
Update Dockerfile
This commit is contained in:
parent
399db0b550
commit
9a32ce701e
25
Dockerfile
25
Dockerfile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user