-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (42 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
55 lines (42 loc) · 1.01 KB
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
54
55
#
# Subsonic Dockerfile
#
# http://www.subsonic.org/
#
# Pull base image.
FROM ubuntu:14.04
# Add utf-8 locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Install java7 and wget
RUN apt-get update && apt-get install -y\
openjdk-7-jre\
wget
# Specifies where to download subsonic from
ENV SUB_URL https://s3-eu-west-1.amazonaws.com/subsonic-public/download/subsonic-6.1.6.deb
# Remove apt cache
RUN rm -rf /var/lib/apt/lists/*
# Install subsonic
RUN \
cd /tmp &&\
wget $SUB_URL &&\
dpkg -i subsonic-*deb &&\
rm -f subsonic-*.deb
# Define mountable directories.
VOLUME ["/subsonic"]
VOLUME ["/music"]
# Copy subsonic config
ADD config/subsonic.conf /etc/default/subsonic
# Copy the startup script
ADD scripts/startup.sh /root/startup.sh
# Make the startup script executable
RUN chmod +x /root/startup.sh
# Create the user subsonic
RUN useradd subsonic
# Expose port
# - 8080: HTTP (subsonic)
EXPOSE 8080
# Start subsonic
ENTRYPOINT ["/root/startup.sh"]