Organizando y comenzando con interfaces
This commit is contained in:
21
Dockerfile
21
Dockerfile
@@ -1,13 +1,24 @@
|
||||
FROM php:8.4-fpm-alpine
|
||||
FROM php:8.4-fpm
|
||||
|
||||
ARG UID=1000
|
||||
ARG GID=1000
|
||||
|
||||
RUN apk add --no-cache shadow nginx git curl zip unzip supervisor nodejs-current npm postgresql17-dev libzip-dev \
|
||||
RUN apt update && apt install -y nginx git curl zip unzip supervisor libpq-dev libzip-dev libicu-dev \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh \
|
||||
&& bash nodesource_setup.sh \
|
||||
&& apt install nodejs \
|
||||
&& pecl install xdebug \
|
||||
&& docker-php-ext-install pdo_pgsql \
|
||||
&& docker-php-ext-install zip \
|
||||
&& usermod -u 1000 www-data \
|
||||
&& groupmod -g 1000 www-data
|
||||
&& docker-php-ext-install bcmath \
|
||||
&& docker-php-ext-install intl \
|
||||
&& docker-php-ext-enable xdebug \
|
||||
&& usermod -u $UID www-data \
|
||||
&& groupmod -g $GID www-data \
|
||||
&& apt clean \
|
||||
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ \
|
||||
&& apt clean autoclean \
|
||||
&& apt autoremove --yes
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
@@ -15,7 +26,7 @@ COPY --from=composer:lts /usr/bin/composer /usr/local/bin/composer
|
||||
COPY composer.json composer.lock ./
|
||||
RUN composer install --no-dev --prefer-dist --no-autoloader --optimize-autoloader && rm -rf /root/.composer/cache/*
|
||||
|
||||
COPY nginx.conf /etc/nginx/http.d/default.conf
|
||||
COPY nginx.conf /etc/nginx/sites-enabled/default
|
||||
COPY supervisord.conf /etc/supervisord.conf
|
||||
COPY entrypoint.sh /etc/entrypoint.sh
|
||||
COPY ./ ./
|
||||
|
||||
Reference in New Issue
Block a user