-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
33 lines (27 loc) · 1.49 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
FROM alpine:3.11.3@sha256:ddba4d27a7ffc3f86dd6c2f92041af252a1f23a8e742c90e6e1297bfa1bc0c45
ENV JTS3_SERVER_MOD_VERSION=6.5.7
RUN echo "## Downloading ${JTS3_SERVER_MOD_VERSION} ##" && \
apk add --no-cache libarchive-tools && \
wget -qO- "https://www.stefan1200.de/downloads/JTS3ServerMod_${JTS3_SERVER_MOD_VERSION}.zip" | bsdtar -xf- && \
rm -R /JTS3ServerMod/JTS3ServerMod-Windows* /JTS3ServerMod/documents/ /JTS3ServerMod/tools/
FROM openjdk:8u212-jre-alpine3.9@sha256:b2ad93b079b1495488cc01375de799c402d45086015a120c105ea00e1be0fd52
MAINTAINER Philipp Daniels <philipp.daniels@gmail.com>
ENV JTS3_SERVER_MOD_VERSION=6.5.7
WORKDIR /JTS3ServerMod
COPY --from=0 /JTS3ServerMod .
VOLUME /JTS3ServerMod/config /JTS3ServerMod/plugins /JTS3ServerMod/log
COPY docker-entrypoint.sh .
ENTRYPOINT ["./docker-entrypoint.sh"]
CMD ["-mx30M"]
ARG VCS_REF
ARG BUILD_DATE
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="JTS3ServerMod" \
org.label-schema.version="${JTS3_SERVER_MOD_VERSION}" \
org.label-schema.description="JTS3ServerMod is a Teamspeak 3 server bot written in Java language" \
org.label-schema.url="https://www.stefan1200.de/forum/index.php?topic=2.0" \
org.label-schema.usage="https://www.stefan1200.de/documentation/jts3servermod/readme.html" \
org.label-schema.vcs-url="https://github.com/phaldan/docker-JTS3ServerMod" \
org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.vendor="PhALDan"