-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
44 lines (30 loc) · 1.02 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
39
40
41
42
43
44
FROM madsonic/arch-base:latest
MAINTAINER Madsonic ([email protected])
# additional files
##################
# add supervisor conf file for app
ADD *.conf /etc/supervisor/conf.d/
# add bash scripts to install app
ADD install.sh /root/install.sh
# copy start bash script to madsonic dir (checks ssl enabled/disabled and copies transcoders to madsonic install dir)
ADD start.sh /opt/madsonic/start.sh
# install app
#############
# make executable and run bash scripts to install app
RUN chmod +x /root/*.sh /opt/madsonic/*.sh && /bin/bash /root/install.sh
# docker settings
#################
# set env variable for java
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk/jre
# map /config to host defined config path (used to store configuration from app)
VOLUME /config
# map /media to host defined media path (used to read/write to media library)
VOLUME /media
# expose port for http
EXPOSE 4040
# expose port for https
EXPOSE 4050
# run supervisor
################
# run supervisor
CMD ["supervisord", "-c", "/etc/supervisor.conf", "-n"]