-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
38 lines (30 loc) · 1.19 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
FROM ubuntu:trusty
MAINTAINER Adam Chapman <adam.p.chapman@gmail.com>
# base packages
RUN apt-get update -y && apt-get install -y wget nginx unzip
# install railo
RUN RAILO_VERSION="4.2.1.008" \
&& RAILO_INSTALLER="railo-$RAILO_VERSION-pl0-linux-x64-installer.run" \
&& wget -O /tmp/$RAILO_INSTALLER http://www.getrailo.org/down.cfm?item=/railo/remote/download42/$RAILO_VERSION/tomcat/linux/$RAILO_INSTALLER \
&& chmod -R 744 /tmp/$RAILO_INSTALLER \
&& /tmp/$RAILO_INSTALLER --mode unattended --installconn false --installiis false --railopass change_me_to_something_viable \
&& rm -rf /tmp/$RAILO_INSTALLER
# make web root
RUN mkdir /var/www
# copy entire contents of App folder into webroot
COPY app/ /var/www/
# nginx config
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx/cfwheels-rewrite-rules /etc/nginx/cfwheels-rewrite-rules
COPY nginx/proxy-params /etc/nginx/proxy-params
COPY nginx/default /etc/nginx/sites-enabled/default
# tomcat/railo config
COPY railo/web.xml /opt/railo/tomcat/conf/web.xml
COPY railo/server.xml /opt/railo/tomcat/conf/server.xml
# expose http port
EXPOSE 80 8080
# start script
ADD scripts/start.sh /start.sh
RUN chmod +x /start.sh
# start services
CMD "/start.sh"