This repository was archived by the owner on Mar 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (29 loc) · 1.41 KB
/
Copy pathDockerfile
File metadata and controls
41 lines (29 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM php:7.3-cli
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
git curl openssh-client zlib1g-dev libzip-dev zip unzip ca-certificates less mysql-client; \
docker-php-ext-install mysqli zip
## Setus up composer
#ENV COMPOSER_ALLOW_SUPERUSER=1
RUN curl -sS https://getcomposer.org/installer | php -- \
--filename=composer \
--install-dir=/usr/local/bin; \
curl -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar;
#RUN cd /usr/local/bin && curl --silent --show-error https://getcomposer.org/installer | php
WORKDIR /data/www-app
#COPY site.conf /etc/nginx/conf.d/
#ADD ./codeception/.env /data/www-app/
ADD docker-entrypoint.sh /usr/local/bin/
RUN chmod -R +x /usr/local/bin; \
mkdir -p /var/www/.composer; \
chown www-data:www-data /var; \
chown -R www-data:www-data /data/www-app /var/www; \
mv /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini; \
sed -i -e 's/memory_limit\ =\ 128M/memory_limit\ =\ 512M/g' /usr/local/etc/php/php.ini
# chmod -R 0774 /tmp /var /run /etc /mnt /data/apps/nginx; \
# chown -R nginx /data/www-app /var /etc/nginx /usr/local /etc/alternatives /etc/php /etc/ssl /tmp;\
# mkdir -p /home/nginx && chown -R nginx:nginx /home/nginx && chmod -R 0751 /home/nginx; \
# usermod -a -G www-data nginx
USER www-data
ENTRYPOINT ["docker-entrypoint.sh"]