Layout Base
This commit is contained in:
@@ -3,8 +3,9 @@ FROM php:8.4-fpm-alpine
|
||||
ARG UID=1000
|
||||
ARG GID=1000
|
||||
|
||||
RUN apk add --no-cache shadow nginx git curl zip unzip supervisor nodejs-current npm postgresql17-dev \
|
||||
RUN apk add --no-cache shadow nginx git curl zip unzip supervisor nodejs-current npm postgresql17-dev libzip-dev \
|
||||
&& docker-php-ext-install pdo_pgsql \
|
||||
&& docker-php-ext-install zip \
|
||||
&& usermod -u 1000 www-data \
|
||||
&& groupmod -g 1000 www-data
|
||||
|
||||
@@ -19,9 +20,12 @@ COPY supervisord.conf /etc/supervisord.conf
|
||||
COPY entrypoint.sh /etc/entrypoint.sh
|
||||
COPY ./ ./
|
||||
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/html \
|
||||
&& composer dump-autoload \
|
||||
&& npm install \
|
||||
&& npm run build \
|
||||
&& npm cache clean --force \
|
||||
&& rm -rf node_modules\
|
||||
&& rm -rf /tmp/* /var/tmp/*
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user