-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
24 lines (18 loc) · 1.1 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
#docker build --rm -t airsonic/demo:tomcat .
#docker run -i --rm airsonic/demo:tomcat
FROM kirillf/centos-tomcat
LABEL description="Airsonic demo." \
url="https://airsonic.github.io/"
USER root
RUN mkdir /opt/tomcat/webapps/airsonic; mkdir /var/airsonic; mkdir /var/music; \
rm -rf /opt/tomcat/webapps/ROOT /opt/tomcat/webapps/docs /opt/tomcat/webapps/examples /opt/tomcat/webapps/host-manager /opt/tomcat/webapps/manager; \
chgrp -R root /opt/tomcat; chmod -R 770 /opt/tomcat; chmod -R 770 /var/airsonic; chmod -R 770 /var/music
COPY context.xml /opt/tomcat/conf
COPY airsonic.properties /var/airsonic/airsonic.properties
ADD music /var/music
WORKDIR /opt/tomcat/webapps/airsonic
RUN wget https://github.com/airsonic/airsonic/releases/download/v10.1.1/airsonic.war; jar xvf airsonic.war; rm airsonic.war
COPY demo-changelog.xml /opt/tomcat/webapps/airsonic/WEB-INF/classes/liquibase
RUN sed -i \
's/<\/databaseChangeLog>/ <include file="demo-changelog.xml" relativeToChangelogFile="true"\/>\n<\/databaseChangeLog>/g' \
/opt/tomcat/webapps/airsonic/WEB-INF/classes/liquibase/db-changelog.xml