mirror of
https://github.com/Merith-TK/docker-vintagestory
synced 2025-07-03 02:17:16 +01:00
fix ARG as cmd param deos not work, using ENV again
This commit is contained in:
parent
aaa605df31
commit
c9c9622524
3 changed files with 9 additions and 8 deletions
|
@ -13,16 +13,16 @@ RUN rm "vs_server_${vs_version}.tar.gz"
|
|||
# ============== runtime stage ==================
|
||||
FROM mono:latest as runtime
|
||||
|
||||
WORKDIR /game
|
||||
COPY --from=downloader "./download/" "/game"
|
||||
|
||||
# Defaults
|
||||
ARG vs_data_path=/gamedata/vs
|
||||
|
||||
COPY --from=downloader "./download/" "/game"
|
||||
COPY "./serverconfig.json" "${vs_data_path}/serverconfig.json"
|
||||
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 42420/tcp
|
||||
|
||||
WORKDIR /game
|
||||
# Execution command
|
||||
CMD mono VintagestoryServer.exe --dataPath ${vs_data_path}
|
||||
CMD mono VintagestoryServer.exe --dataPath ${VS_DATA_PATH}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue