fix issue #1 and organize Dockerfile

Dieser Commit ist enthalten in:
Nick Slowinski 2021-10-18 10:39:07 +02:00
Ursprung b5a948dade
Commit 98c8102b28
Signiert von: nickslowinski
GPG-Schlüssel-ID: F7F36D4749228BAC

Datei anzeigen

@ -18,11 +18,17 @@
# #
FROM alpine as helper FROM alpine as helper
ENV JTS3_SERVER_MOD_VERSION=6.5.7 ENV JTS3_SERVER_MOD_VERSION=6.5.7
RUN wget -O JTS3ServerMod.zip "https://www.stefan1200.de/downloads/JTS3ServerMod_${JTS3_SERVER_MOD_VERSION}.zip" && unzip JTS3ServerMod.zip && mv JTS3ServerMod/changelog.txt JTS3ServerMod/readme.txt JTS3ServerMod/readme_deutsch.txt JTS3ServerMod/documents RUN apk add --no-cache sed && \
wget -O JTS3ServerMod.zip "https://www.stefan1200.de/downloads/JTS3ServerMod_${JTS3_SERVER_MOD_VERSION}.zip" && \
unzip JTS3ServerMod.zip && \
mv JTS3ServerMod/changelog.txt JTS3ServerMod/readme.txt JTS3ServerMod/readme_deutsch.txt JTS3ServerMod/documents && \
mkdir JTS3ServerMod/logs && \
sed -i -e 's/%apphome%JTS3ServerMod_server1.log/%apphome%logs\/JTS3ServerMod_server1.log/g' /JTS3ServerMod/config/JTS3ServerMod_InstanceManager.cfg && \
sed -i -e 's/%apphome%JTS3ServerMod_server1_login.csv/%apphome%logs\/JTS3ServerMod_server1_login.csv/g' /JTS3ServerMod/config/JTS3ServerMod_InstanceManager.cfg
FROM alpine FROM alpine
COPY --from=helper /JTS3ServerMod /JTS3ServerMod COPY --from=helper /JTS3ServerMod /JTS3ServerMod
RUN apk add --no-cache openjdk8-jre-base RUN apk add --no-cache openjdk8-jre-base
VOLUME /JTS3ServerMod/config VOLUME /JTS3ServerMod/config /JTS3ServerMod/logs
WORKDIR /JTS3ServerMod WORKDIR /JTS3ServerMod
CMD java -jar JTS3ServerMod.jar CMD java -jar JTS3ServerMod.jar