From 9830a8cc4d3f95d8524874df55e121c94c52c8b5 Mon Sep 17 00:00:00 2001 From: farid Date: Fri, 28 Jan 2022 09:50:14 +0330 Subject: [PATCH] fix: change Dockerfile structure --- Dockerfile.nginx | 4 +--- Dockerfile.staging | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile.nginx b/Dockerfile.nginx index fcdd58e..f695b77 100644 --- a/Dockerfile.nginx +++ b/Dockerfile.nginx @@ -1,8 +1,6 @@ FROM registry.willaspace.com/willaspace/willaengine-staging:latest AS php_builder -FROM node:16.7.0-alpine AS builder -COPY --from=php_builder /var/www/ /app/ -WORKDIR /app +WORKDIR /var/www/ RUN npm install RUN npm run staging diff --git a/Dockerfile.staging b/Dockerfile.staging index e0f6968..8cd86cf 100644 --- a/Dockerfile.staging +++ b/Dockerfile.staging @@ -15,6 +15,9 @@ RUN mkdir -p /root/.ssh && \ RUN docker-php-ext-install gd +RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ + apt-get install -y nodejs + RUN printf 'upload_max_filesize=300M;\npost_max_size=300M;\nmax_execution_time=600;\nmax_input_time=600;\n' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini; RUN echo 'pm.max_children = 100' >> /usr/local/etc/php-fpm.d/zz-docker.conf