You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/Dockerfile.staging

36 lines
948 B

FROM dfs1368/laravel-php-fpm:7.4
ARG ssh_prv_key
WORKDIR /var/www
RUN apt install -y sendmail openssh-server libpng-dev
# Authorize SSH Host
RUN mkdir -p /root/.ssh && \
chmod 0700 /root/.ssh && \
echo "$ssh_prv_key" > /root/.ssh/id_rsa && \
ssh-keyscan git.willaspace.com > /root/.ssh/known_hosts && \
chmod 600 /root/.ssh/id_rsa
RUN docker-php-ext-install gd
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 composer-staging.* /var/www/
RUN composer clearcache && COMPOSER=composer-staging.json composer install --no-scripts
COPY . /var/www
RUN php artisan morphmap:cache
RUN chown -R www-data:www-data \
/var/www/public \
/var/www/storage \
/var/www/bootstrap/cache