docker-vintagestory/Dockerfile

29 lines
729 B
Text
Raw Normal View History

2020-07-24 07:53:22 +01:00
# ============== download stage ==================
FROM alpine as downloader
WORKDIR /download
ENV VSTYPE stable
2020-08-18 11:32:03 +01:00
ENV VSVERSION 1.13.0
2020-07-24 07:53:22 +01:00
RUN wget "https://cdn.vintagestory.at/gamefiles/${VSTYPE}/vs_server_${VSVERSION}.tar.gz"
2020-07-24 07:53:22 +01:00
RUN tar xzf "vs_server_${VSVERSION}.tar.gz"
RUN rm "vs_server_${VSVERSION}.tar.gz"
# ============== runtime stage ==================
FROM mono:latest as runtime
WORKDIR /game
ENV VSDATAPATH vs
COPY --from=downloader "./download/" "/game"
COPY "./serverconfig.json" "/gamedata/${VSDATAPATH}/serverconfig.json"
# Expose ports
EXPOSE 42420/tcp
2020-07-24 07:53:22 +01:00
# CMD [ "mono" , "VintagestoryServer.exe", "--dataPath", "/gamedata/${VSDATAPATH}" ]
CMD mono VintagestoryServer.exe --dataPath "/gamedata/${VSDATAPATH}"