-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·40 lines (38 loc) · 1.06 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
FROM dunglas/frankenphp AS frankenphp
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN \
# Install OS packages
apt-get update; \
apt-get -y --no-install-recommends install \
acl \
git \
libnss3-tools \
openssh-client \
unzip \
; \
# Configure OS
install-php-extensions \
@composer \
apcu \
intl \
opcache \
zip \
; \
# Configure PHP
{ \
echo apc.enable_cli = 1; \
echo memory_limit = 256M; \
echo opcache.interned_strings_buffer = 16; \
echo opcache.max_accelerated_files = 20000; \
echo opcache.memory_consumption = 256; \
echo realpath_cache_ttl = 600; \
echo session.use_strict_mode = 1; \
} >> "$PHP_INI_DIR/conf.d/10-php.ini"; \
# Install Node.js
curl -fsSL "https://deb.nodesource.com/setup_current.x" | bash -; \
apt-get install -y --no-install-recommends nodejs; \
npm install -g yarn; \
# Cleanup
apt-get clean; \
rm -rf /var/lib/apt/lists/*