mirror of
https://github.com/Merith-TK/docker-vintagestory
synced 2025-01-18 14:20:26 +00:00
change from mono to dotnet/sdk runtime, update version to 1.18.8
This commit is contained in:
parent
a468d34819
commit
152add7185
1 changed files with 10 additions and 10 deletions
20
Dockerfile
20
Dockerfile
|
@ -4,23 +4,23 @@ FROM alpine as downloader
|
|||
WORKDIR /download
|
||||
|
||||
ARG vs_type=stable
|
||||
ARG vs_version=1.18.7
|
||||
ARG vs_os=linux-x64
|
||||
ARG vs_version=1.18.8
|
||||
|
||||
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"
|
||||
RUN wget "https://cdn.vintagestory.at/gamefiles/${vs_type}/vs_server_${vs_os}_${vs_version}.tar.gz"
|
||||
RUN tar xzf "vs_server_${vs_os}_${vs_version}.tar.gz"
|
||||
RUN rm "vs_server_${vs_os}_${vs_version}.tar.gz"
|
||||
|
||||
# ============== runtime stage ==================
|
||||
FROM mono:latest as runtime
|
||||
|
||||
COPY --from=downloader "./download/" "/game"
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 as runtime
|
||||
WORKDIR /game
|
||||
# Defaults
|
||||
ENV VS_DATA_PATH=/gamedata/vs
|
||||
|
||||
COPY --from=downloader "./download/" "/game"
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 42420/tcp
|
||||
|
||||
WORKDIR /game
|
||||
# Execution command
|
||||
CMD mono VintagestoryServer.exe --dataPath ${VS_DATA_PATH}
|
||||
CMD [ "dotnet", "VintagestoryServer.dll", "--dataPath", "${VS_DATA_PATH}" ]
|
||||
|
|
Loading…
Reference in a new issue