docker-vintagestory/Dockerfile

27 lines
694 B
Text
Raw Normal View History

2020-07-24 07:53:22 +01:00
# ============== download stage ==================
FROM alpine as downloader
WORKDIR /download
ARG vs_type=stable
ARG vs_os=linux-x64
ARG vs_version=1.18.8
2020-07-24 07:53:22 +01:00
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"
2020-07-24 07:53:22 +01:00
# ============== runtime stage ==================
FROM mcr.microsoft.com/dotnet/sdk:7.0 as runtime
WORKDIR /game
# Defaults
2023-06-28 20:36:03 +01:00
ENV VS_DATA_PATH=/gamedata/vs
2020-07-24 07:53:22 +01:00
COPY --from=downloader "./download/" "/game"
# Expose ports
EXPOSE 42420/tcp
# Execution command
CMD [ "dotnet", "VintagestoryServer.dll", "--dataPath", "${VS_DATA_PATH}" ]