-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (35 loc) · 1.21 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
#
# Use this dockerfile to run ZF3, Apigility with OAuth2.
#
# Start the server using docker-compose:
#
# docker-compose up -d
#
# You can install dependencies via the container:
#
# docker-compose run api composer install
#
# You can manipulate dev mode from the container:
#
# docker-compose run api composer development-enable
# docker-compose run api composer development-disable
# docker-compose run api composer development-status
#
FROM ubuntu:xenial
MAINTAINER Dolly Aswin <dolly.aswin@aqilix.com>
COPY docker/apache2/zf3.vhost.conf /etc/apache2/sites-available/
COPY docker/apache2/apache2-foreground /usr/local/bin
COPY docker/php/apache2/conf.d/20-xdebug.ini /etc/php/7.0/apache2/conf.d/
RUN apt-get update \
&& apt-get install -y wget curl git vim apache2 libapache2-mod-php7.0 \
php7.0 php7.0-intl php7.0-curl php7.0-json php7.0-mbstring \
php7.0-mcrypt php7.0-mysql php7.0-xml php7.0-zip php-xdebug \
&& mv /var/www/html /var/www/public \
&& curl -sS https://getcomposer.org/installer \
| php -- --install-dir=/usr/local/bin --filename=composer
RUN a2dissite 000-default \
&& a2enmod rewrite \
&& a2ensite zf3.vhost
WORKDIR /var/www
EXPOSE 80
CMD ["apache2-foreground"]