forked from motech/openmrs-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (18 loc) · 907 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM google/debian:wheezy
ADD openmrs-runtime.properties /var/lib/tomcat7/openmrs-runtime.properties
ADD run.sh /root/run.sh
ADD openmrs_dump.sql /root/openmrs_dump.sql
RUN apt-get update; \
apt-get install -y curl openjdk-7-jre tomcat7; \
curl -L http://sourceforge.net/projects/openmrs/files/releases/OpenMRS_1.9.7/openmrs.war/download \
-o /var/lib/tomcat7/webapps/openmrs.war; \
mkdir /var/lib/OpenMRS; \
mkdir /usr/share/tomcat7/.OpenMRS; \
mkdir /usr/share/tomcat7/.OpenMRS/modules; \
curl -L http://modules.openmrs.org/modulus/api/releases/1138/download/webservices.rest-omod-2.9.omod \
-o /usr/share/tomcat7/.OpenMRS/modules/webservices.rest-omod-2.9.omod; \
apt-get install -y mysql-server; \
chown tomcat7:tomcat7 /var/lib/tomcat7/openmrs-runtime.properties /var/lib/OpenMRS /usr/share/tomcat7/.OpenMRS; \
chmod +x /root/run.sh
EXPOSE 8080
CMD ["/root/run.sh"]