mirror of
https://github.com/Merith-TK/docker-vintagestory
synced 2025-07-01 12:17:16 +01:00
added mods and playerdata to example build
fix Dockerfile using ARG instead of ENV
This commit is contained in:
parent
885108a526
commit
aaa605df31
9 changed files with 54 additions and 23 deletions
18
Dockerfile
18
Dockerfile
|
@ -3,26 +3,26 @@ FROM alpine as downloader
|
|||
|
||||
WORKDIR /download
|
||||
|
||||
ENV VSTYPE stable
|
||||
ENV VSVERSION 1.13.0
|
||||
ARG vs_type=stable
|
||||
ARG vs_version=1.13.0
|
||||
|
||||
RUN wget "https://cdn.vintagestory.at/gamefiles/${VSTYPE}/vs_server_${VSVERSION}.tar.gz"
|
||||
RUN tar xzf "vs_server_${VSVERSION}.tar.gz"
|
||||
RUN rm "vs_server_${VSVERSION}.tar.gz"
|
||||
RUN wget "https://cdn.vintagestory.at/gamefiles/${vs_type}/vs_server_${vs_version}.tar.gz"
|
||||
RUN tar xzf "vs_server_${vs_version}.tar.gz"
|
||||
RUN rm "vs_server_${vs_version}.tar.gz"
|
||||
|
||||
# ============== runtime stage ==================
|
||||
FROM mono:latest as runtime
|
||||
|
||||
WORKDIR /game
|
||||
|
||||
ENV VSDATAPATH vs
|
||||
ARG vs_data_path=/gamedata/vs
|
||||
|
||||
COPY --from=downloader "./download/" "/game"
|
||||
COPY "./serverconfig.json" "/gamedata/${VSDATAPATH}/serverconfig.json"
|
||||
COPY "./serverconfig.json" "${vs_data_path}/serverconfig.json"
|
||||
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 42420/tcp
|
||||
|
||||
# CMD [ "mono" , "VintagestoryServer.exe", "--dataPath", "/gamedata/${VSDATAPATH}" ]
|
||||
CMD mono VintagestoryServer.exe --dataPath "/gamedata/${VSDATAPATH}"
|
||||
# Execution command
|
||||
CMD mono VintagestoryServer.exe --dataPath ${vs_data_path}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue