File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM php:8-apache
2+
3+ RUN apt update && \
4+ apt install -y libxslt1-dev libsqlite3-dev libxslt1.1 libsqlite3-0 && \
5+ docker-php-ext-install pdo pdo_mysql pdo_sqlite xsl && \
6+ apt purge --auto-remove -y libxslt1-dev libsqlite3-dev && \
7+ apt clean
8+
9+ RUN a2enmod rewrite
10+
11+ ENV APACHE_DOCUMENT_ROOT /var/www/html
12+ RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
13+ RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
Original file line number Diff line number Diff line change 1+ TAG? =1
2+
3+ build :
4+ docker buildx build . --platform=linux/amd64,linux/arm64 -t ondras/php:$(TAG ) --push
5+
6+ create-builder :
7+ docker buildx create --name mybuilder --driver docker-container --bootstrap
8+
9+ use-builder :
10+ docker buildx use mybuilder
You can’t perform that action at this time.
0 commit comments