-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (46 loc) · 1.24 KB
/
Dockerfile
File metadata and controls
57 lines (46 loc) · 1.24 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
FROM ubuntu:16.04
LABEL maintainer="mobingi,Inc."
RUN apt-get update && apt-get install -y --no-install-recommends \
apache2 \
software-properties-common \
supervisor \
&& apt-get clean \
&& rm -fr /var/lib/apt/lists/*
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
RUN apt-get update && apt-get install -y --no-install-recommends \
libapache2-mod-php7.0 \
php7.0 \
php7.0-cli \
php7.0-curl \
php7.0-dev \
php7.0-gd \
php7.0-imap \
php7.0-mbstring \
php7.0-mcrypt \
php7.0-mysql \
php7.0-pgsql \
php7.0-pspell \
php7.0-xml \
php7.0-xmlrpc \
php-apcu \
php-memcached \
php-pear \
php-redis \
&& apt-get clean \
&& rm -fr /var/lib/apt/lists/*
RUN a2enmod rewrite
COPY conf/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY conf/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY script/run.sh /run.sh
RUN chmod 755 /run.sh
COPY conf/config /config
# Run some Debian packages installation.
# ENV PACKAGES="php-pear curl php-xdebug"
ENV PACKAGES="php-pear curl"
RUN apt-get update && \
apt-get install -yq --no-install-recommends $PACKAGES && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# COPY conf/php.ini /etc/php/7.0/apache2/php.ini
EXPOSE 80
CMD ["/run.sh"]