refactor docker deployment
Reviewed-on: http://git.simonis.lol/sites/abiball/pulls/4
This commit is contained in:
19
.docker/Dockerfile
Normal file
19
.docker/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM composer AS composer
|
||||
FROM php:8.2-apache
|
||||
|
||||
COPY .. /var/www/html/
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
COPY .docker/hosts/abiball.conf /etc/apache2/sites-enabled
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/html
|
||||
RUN rm /etc/apache2/sites-enabled/000-default.conf
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -qq -y --no-install-recommends libicu-dev libpng-dev libxml2-dev libzip-dev libonig-dev libxslt-dev
|
||||
|
||||
RUN docker-php-ext-install pdo pdo_mysql mysqli gd opcache intl mbstring zip gd xsl
|
||||
RUN a2enmod rewrite
|
||||
RUN pecl install apcu && docker-php-ext-enable apcu
|
||||
|
||||
WORKDIR /var/www/html
|
||||
RUN composer install --optimize-autoloader --no-suggest --no-progress
|
Reference in New Issue
Block a user