JTS3ServerMod-dockerized/Dockerfile
Nick Slowinski bdff735190
Einige Prüfungen sind fehlgeschlagen
continuous-integration/drone/push Build is failing
update to the "6.5.7 Re-Release" version
2022-02-13 18:03:26 +01:00

34 Zeilen
Kein EOL
1,9 KiB
Docker

# JTS3ServerMod-dockerized - Running the JTS3ServerMod in a container.
# Copyright (C) 2021 JTS3ServerMod-dockerized Authors (please see "README.md"
# file in the root directory of this repository for more info or visit
# https://git.nick-slowinski.de/NickSlowinski/JTS3ServerMod-dockerized/src/branch/stable/README.md#authors)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
FROM alpine as helper
ENV JTS3_SERVER_MOD_VERSION=6.5.7_2
RUN apk add --no-cache sed && \
wget -O JTS3ServerMod.zip "https://www.stefan1200.de/downloads/JTS3ServerMod_${JTS3_SERVER_MOD_VERSION}.zip" && \
unzip JTS3ServerMod.zip -d JTS3ServerMod && \
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
COPY --from=helper /JTS3ServerMod /JTS3ServerMod
RUN apk add --no-cache openjdk8-jre-base
VOLUME /JTS3ServerMod/config /JTS3ServerMod/logs
WORKDIR /JTS3ServerMod
CMD java -jar JTS3ServerMod.jar