-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (41 loc) · 1.04 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
FROM php:7.4-fpm
# Built on debian:buster-slim
# Set working directory
WORKDIR /var/www/html
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libmcrypt-dev \
libpng-dev \
libjpeg-dev \
libpng-dev
RUN apt-get update && apt-get install -y \
zlib1g-dev \
libzip-dev \
xfonts-75dpi \
fontconfig \
zip \
unzip \
curl \
wget \
xvfb \
gnupg2 \
apt-transport-https \
mcrypt \
libmagickwand-dev --no-install-recommends
RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick
RUN docker-php-ext-install pdo pdo_mysql pcntl zip
# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
########################
# Linux fix...
# .---.
# / \
# \.@-@./
# /`\_/`\
# // _ \\
# | \ )|_
# /`\_`> <_/ \
# \__/'---'\__/
RUN usermod -u 1000 www-data && groupmod -g 1000 www-data
########################
RUN chown -R www-data:www-data /var/www/html