53 lines
1.0 KiB
Docker
53 lines
1.0 KiB
Docker
FROM php:8.0-apache
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y upgrade --no-install-recommends \
|
|
&& apt-get install -y \
|
|
build-essential \
|
|
imagemagick \
|
|
libfreetype6-dev \
|
|
libicu-dev \
|
|
libjpeg62-turbo-dev \
|
|
libjpeg-dev \
|
|
libmcrypt-dev \
|
|
libonig-dev \
|
|
libpng-dev \
|
|
libpq-dev \
|
|
libssl-dev \
|
|
libxml2-dev \
|
|
libxrender1 \
|
|
libzip-dev \
|
|
locales \
|
|
openssl \
|
|
unzip \
|
|
zip \
|
|
zlib1g-dev \
|
|
--no-install-recommends \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN docker-php-ext-configure gd \
|
|
--with-freetype \
|
|
--with-jpeg \
|
|
&& docker-php-ext-install -j$(nproc) \
|
|
gd \
|
|
bcmath \
|
|
intl \
|
|
mbstring \
|
|
pcntl \
|
|
pdo \
|
|
pdo_mysql \
|
|
zip
|
|
|
|
WORKDIR /var/www/laravel_docker
|
|
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
|
|
RUN a2enmod rewrite
|
|
|
|
# chown www-data:www-data -R /var/www/laravel_docker
|
|
|
|
# composer install
|
|
# cp .env.example .env
|
|
# php artisan key:generate
|
|
# php artisan migrate
|
|
# php artisan storage:link |