forked from opendocman/opendocman
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (26 loc) · 932 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
29
30
31
32
33
34
FROM php:5.6-apache
MAINTAINER Logical Arts, LLC <[email protected]>
# Install packages
RUN apt-get update \
&& apt-get install --no-install-recommends -y apt-utils vim mysql-client php5-mysql git openssl ssl-cert sendmail \
&& docker-php-ext-install pdo_mysql pdo \
&& rm -rf /var/lib/apt/lists/*
# Copy php configs
#COPY src/main/resources/docker-php-pecl-install /usr/local/bin/
#RUN docker-php-pecl-install xdebug-2.3.3
#COPY src/main/resources/xdebug.ini ${PHP_INI_DIR}/conf.d/docker-php-pecl-xdebug.ini
COPY src/main/resources/php.ini /usr/local/etc/php/conf.d
# Install mod_rewrite
RUN a2enmod rewrite
RUN a2ensite default-ssl
RUN a2enmod ssl
# Copy application files
COPY . /var/www/html
# Change file permissions
RUN usermod -u 1000 www-data
# Copy startup command
COPY src/main/resources/start.sh /start.sh
RUN chmod 755 /start.sh
EXPOSE 80 443
# By default, simply start apache.
ENTRYPOINT ["/start.sh"]