forked from ptrofimov/beanstalk_console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 780 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
FROM php:7.1-apache
LABEL maintainer="Rion Dooley <[email protected]>"
ENV APACHE_DOCROOT "/var/www"
RUN apt-get update
RUN apt-get -y upgrade
# Add php extensions
RUN docker-php-ext-install mbstring && \
a2enmod rewrite
# Add custom default apache virutal host with combined error and access
# logging to stdout
ADD docker/apache_vhost /etc/apache2/sites-available/000-default.conf
ADD docker/php.ini /usr/local/etc/php
# Add custom entrypoint to inject runtime environment variables into
# beanstalk console config
ADD docker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint
RUN chmod +x /usr/local/bin/docker-entrypoint
CMD ["/usr/local/bin/docker-entrypoint"]
# Add project from current repo to enable automated build
WORKDIR "${APACHE_DOCROOT}"
ADD . ./