fix: change dockerfile staging root directory

pull/145/head^2
farid 3 years ago
parent ffba4b7e2a
commit 08e959ad74

@ -2,7 +2,7 @@ FROM dfs1368/laravel-php-fpm:7.4
ARG ssh_prv_key
WORKDIR /var/www
WORKDIR /var/www/html
RUN apt install -y sendmail openssh-server libpng-dev
@ -15,24 +15,23 @@ 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
COPY database /var/www/database
COPY database /var/www/html/database
COPY composer-staging.* /var/www/
COPY composer-staging.* /var/www/html/
RUN composer clearcache && COMPOSER=composer-staging.json composer install --no-scripts
COPY . /var/www
COPY . /var/www/html
RUN php artisan morphmap:cache
RUN chown -R www-data:www-data \
/var/www/public \
/var/www/storage \
/var/www/bootstrap/cache
/var/www/html/public \
/var/www/html/storage \
/var/www/html/bootstrap/cache

Loading…
Cancel
Save