forked from Sebobo/Shel.DockerFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (38 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
45 lines (38 loc) · 1.16 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
# Pull base image
FROM ubuntu:14.04
MAINTAINER Sebastian Helzle <sebastian@helzle.net>
MAINTAINER Visay Keo <visay@web-essentials.asia>
# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# 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 \
php5-fpm \
php5-cli \
php5-mysql \
php5-gd \
imagemagick \
ghostscript \
php5-imagick \
sqlite \
php5-sqlite \
curl \
php5-curl \
php5-redis \
php5-ldap \
php5-xdebug \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Set workdir to project root
WORKDIR /var/www
# Copy configuration files for php
COPY Configuration/App/php.ini Configuration/App/php-fpm.conf /etc/php5/fpm/
COPY Configuration/App/www.conf /etc/php5/fpm/pool.d/
COPY Configuration/App/php-cli.ini /etc/php5/cli/
# Entry point script which wraps all commands for app container
COPY Scripts/EntryPoint/app.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
# By default start php-fpm
CMD ["php5-fpm"]