forked from visay/DockerTYPO3
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (51 loc) · 1.67 KB
/
Dockerfile
File metadata and controls
60 lines (51 loc) · 1.67 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Pull base image
FROM ubuntu:14.04
MAINTAINER Visay Keo <visay.keo@typo3.org>
# Set the locales
RUN locale-gen en_US.UTF-8 en_GB.UTF-8 de_DE.UTF-8 es_ES.UTF-8 fr_FR.UTF-8 it_IT.UTF-8 km_KH sv_SE.UTF-8 fi_FI.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV DEBIAN_FRONTEND noninteractive
# Upgrade the base system
RUN apt-get update && apt-get upgrade -y -q --no-install-recommends && apt-get install -y --no-install-recommends software-properties-common
# Add ppa for PHP 7.0
RUN apt-get install -y language-pack-en-base && LC_ALL=en_US.UTF-8 add-apt-repository -y ppa:ondrej/php
# Install packages as per recommendation (https://docs.docker.com/articles/dockerfile_best-practices/)
# And clean up APT
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
sqlite3 \
imagemagick \
ghostscript \
sendmail \
openssl \
php7.0-apc \
php7.0-cli \
php7.0-curl \
php7.0-fpm \
php7.0-gd \
php7.0-imagick \
php7.0-ldap \
php7.0-mbstring \
php7.0-mysql \
php7.0-redis \
php7.0-soap \
php7.0-sqlite3 \
php7.0-xdebug \
php7.0-xml \
php7.0-zip \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Set workdir to project root
WORKDIR /var/www
# Copy config files for php
COPY config/app/php.ini /etc/php/7.0/fpm/
COPY config/app/php-fpm.conf /etc/php/7.0/fpm/
COPY config/app/php-cli.ini /etc/php/7.0/cli/
COPY config/app/www.conf /etc/php/7.0/fpm/pool.d/
# Entry point script which wraps all commands for app container
COPY scripts/entrypoint/app.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
# By default start php-fpm
CMD ["php-fpm7.0"]