-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (49 loc) · 1.7 KB
/
Dockerfile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM php:8.0
LABEL maintainer='"Carsten Bleek" <[email protected]>'
ENV COMPOSER_CACHE_DIR=/var/www/cache/.composer
ENV COMPOSER_HOME=$COMPOSER_CACHE_DIR
ENV DEBIAN_FRONTEND=noninteractive
# update and install things we allways need
RUN useradd -ms /bin/bash -d /app yawik;\
mkdir -p $COMPOSER_CACHE_DIR; \
apt-get update; \
apt-get -yq install \
curl git zip unzip nginx joe gnupg2 libxi6 libgconf-2-4 \
libcurl4-openssl-dev \
libxml2-dev \
python3-pip \
zlib1g-dev;
# Install Nodes
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - ; \
apt-get -y install nodejs;
# Install deployer
RUN curl -sLO https://deployer.org/deployer.phar; \
chmod +x deployer.phar; \
mv deployer.phar /usr/local/bin/dep;
RUN docker-php-ext-install intl;
# packages
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
# needed for gd
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
&& rm -rf /var/lib/apt/lists/*
# GD
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j "$(nproc)" gd
# Install PHP mongodb extension
RUN pecl install mongodb; \
echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/mongodb.ini;
# Install PHP solr extension
RUN pecl install solr; \
echo "extension=solr.so" > /usr/local/etc/php/conf.d/solr.ini;
# Install composer
RUN curl -sS https://getcomposer.org/installer > installer.php; \
php ./installer.php --install-dir=/usr/local/bin --filename=composer; \
chmod +x /usr/local/bin/composer;
# Install mkdocs
RUN pip3 install mkdocs; \
pip3 install mkdocs-material;
COPY checkout-yawik.sh /app/checkout-yawik.sh
CMD ["nginx", "-g", "daemon off;"]