20
Dockerfile
20
Dockerfile
@ -6,10 +6,26 @@ COPY --chown=node:node . /app
|
|||||||
RUN npm install
|
RUN npm install
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM serversideup/php:8.3-fpm-apache
|
FROM php:8.3-apache-bullseye
|
||||||
LABEL authors="andp97"
|
LABEL authors="andp97"
|
||||||
|
|
||||||
COPY --chown=www-data:www-data . /var/www/html
|
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
|
||||||
|
|
||||||
|
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
|
||||||
|
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||||
|
|
||||||
|
|
||||||
|
COPY . /var/www/html
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
curl \
|
||||||
|
libpng-dev \
|
||||||
|
libonig-dev \
|
||||||
|
libxml2-dev \
|
||||||
|
zip \
|
||||||
|
unzip
|
||||||
|
|
||||||
|
RUN docker-php-ext-install mbstring exif pcntl bcmath gd
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN composer install
|
RUN composer install
|
||||||
|
|||||||
Reference in New Issue
Block a user