fix: change Dockerfile structure

pull/145/head^2
farid 3 years ago
parent b53b757d9d
commit 9830a8cc4d

@ -1,8 +1,6 @@
FROM registry.willaspace.com/willaspace/willaengine-staging:latest AS php_builder FROM registry.willaspace.com/willaspace/willaengine-staging:latest AS php_builder
FROM node:16.7.0-alpine AS builder WORKDIR /var/www/
COPY --from=php_builder /var/www/ /app/
WORKDIR /app
RUN npm install RUN npm install
RUN npm run staging RUN npm run staging

@ -15,6 +15,9 @@ RUN mkdir -p /root/.ssh && \
RUN docker-php-ext-install gd 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 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 RUN echo 'pm.max_children = 100' >> /usr/local/etc/php-fpm.d/zz-docker.conf

Loading…
Cancel
Save