docker-vintagestory/Dockerfile

29 lines
674 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
2021-01-19 12:42:41 +00:00
ARG vs_version=1.14.7
2020-07-24 07:53:22 +01:00
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"
2020-07-24 07:53:22 +01:00
# ============== runtime stage ==================
FROM mono:latest as runtime
COPY --from=downloader "./download/" "/game"
2020-07-24 07:53:22 +01:00
# Defaults
ARG vs_data_path=/gamedata/vs
2020-07-24 07:53:22 +01:00
COPY "./serverconfig.json" "${vs_data_path}/serverconfig.json"
2020-07-24 07:53:22 +01:00
# Expose ports
EXPOSE 42420/tcp
WORKDIR /game
# Execution command
CMD mono VintagestoryServer.exe --dataPath ${VS_DATA_PATH}