32 lines
586 B
Docker
32 lines
586 B
Docker
FROM php:8.0-apache
|
|
|
|
RUN apt update && apt install -y \
|
|
g++ \
|
|
libicu-dev \
|
|
libpq-dev \
|
|
libzip-dev \
|
|
zip \
|
|
zlib1g-dev \
|
|
git \
|
|
nano
|
|
|
|
RUN docker-php-ext-install \
|
|
intl \
|
|
opcache \
|
|
pdo \
|
|
pdo_mysql \
|
|
pgsql
|
|
|
|
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 |