fix issue #1 and organize Dockerfile
Dieser Commit ist enthalten in:
Ursprung
b5a948dade
Commit
98c8102b28
1 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen
10
Dockerfile
10
Dockerfile
|
@ -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
|
Laden …
In neuem Issue referenzieren