forked from zerpex/ubooquity-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (29 loc) · 955 Bytes
/
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
# Pull base image.
FROM java:8u111-jre-alpine
# Define Ubooquity version
ENV \
APP_VERSION=$(curl -s http://vaemendis.net/ubooquity/static2/download | grep Version | awk -F\& '{print $1}' | awk '{print $NF}')
# Install Ubooquity
RUN \
apk --no-cache add \
unzip \
wget && \
mkdir -p \
/config \
/media \
/ubooquity && \
wget http://vaemendis.net/ubooquity/downloads/Ubooquity-${APP_VERSION}.zip -O /tmp/${APP_VERSION}.zip && \
unzip /tmp/${APP_VERSION}.zip -d /ubooquity && \
rm /tmp/${APP_VERSION}.zip
# Define working directory.
WORKDIR /ubooquity
# Expose Ubooquity ports
EXPOSE 2202 2502
# Declare volumes
VOLUME \
/config \
/media
# Define default command
ENTRYPOINT ["java", "-Dfile.encoding=UTF-8", "-jar", "-Xmx512m", "/ubooquity/Ubooquity.jar", "-workdir", "/config", "-headless", "-libraryport", "2202", "-adminport", "2502", "-remoteadmin"]
# Maintainer
LABEL maintainer="zer <[email protected]>"