-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (43 loc) · 1004 Bytes
/
Dockerfile
File metadata and controls
53 lines (43 loc) · 1004 Bytes
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
FROM ubuntu:16.04
MAINTAINER Engine <hello@thisismyengine.com>
EXPOSE 80 8500
VOLUME ["/var/www", "/tmp/config"]
ENV DEBIAN_FRONTEND noninteractive
# update system
RUN apt-get update && \
apt-get dist-upgrade -y
# install required programs
RUN apt-get install -y \
expect \
wget \
unzip \
xsltproc
# install apache & php7
RUN apt-get install -y \
apache2 \
php7.0 \
php7.0-cli \
libapache2-mod-php7.0 \
php7.0-gd \
php7.0-json \
php7.0-ldap \
php7.0-mbstring \
php7.0-mysql \
php7.0-pgsql \
php7.0-sqlite3 \
php7.0-curl \
php7.0-xml \
php7.0-xsl \
php7.0-zip \
php7.0-soap
# add install directory
ADD ./build/install/ /tmp/
# install cf2016
RUN chmod +x /tmp/install-cf2016.sh
RUN /tmp/install-cf2016.sh
# updated default apache config
COPY apache_default /etc/apache2/sites-available/000-default.conf
# enable mod rewrite
RUN a2enmod rewrite
RUN service apache2 restart
ENTRYPOINT service apache2 start && ./opt/coldfusion2016/cfusion/bin/coldfusion start && /bin/bash