This commit is contained in:
ekazak
2022-10-04 12:26:42 +02:00
parent 4c70a541d2
commit 584ae2182d
12 changed files with 115 additions and 156 deletions

30
devops/Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
FROM wordpress:4.9-fpm
ENV TMP /tmp/nginx-php/
RUN apt-get update && apt-get install -y --no-install-recommends \
libjpeg-dev \
libpng-dev \
libfreetype6-dev \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-freetype-dir=/usr/include \
&& docker-php-ext-install gd
# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- \
--filename=composer \
--install-dir=/usr/local/bin && \
echo "alias composer='composer'" >> /root/.bashrc && \
composer
# php configs
COPY www.conf /usr/local/etc/php-fpm.d/www.conf
COPY docker-php.ini /usr/local/etc/php/conf.d/docker-php.ini
RUN apt-get install -y nginx
# nginx configs
COPY nginx /etc/nginx
WORKDIR /var/www
EXPOSE 80