forked from ptrofimov/beanstalk_console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (21 loc) · 874 Bytes
/
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
FROM php:5.6-apache
MAINTAINER Rion Dooley <[email protected]>
# Add php extensions
RUN docker-php-ext-install mbstring
# Add project from current repo to enable automated build
ADD . /var/www
# Add custom default apache virutal host with combined error and access
# logging to stdout
ADD docker/apache_default /etc/apache2/apache2.conf
ADD docker/apache_vhost /etc/apache2/sites-available/000-default.conf
ADD docker/apache_vhost_ssl /etc/apache2/sites-available/default-ssl.conf
ADD docker/php.ini /usr/local/lib/php.ini
# Add custom entrypoint to inject runtime environment variables into
# beanstalk console config
ADD docker/run.sh /usr/local/bin/run
# Change ownership for apache happiness & install Composer
RUN chmod +x /usr/local/bin/run && \
chown -R www-data:www-data /var/www && \
a2enmod rewrite
WORKDIR /var/www
CMD ["/usr/local/bin/run"]