docker-vintagestory/Dockerfile
2020-08-18 12:32:03 +02:00

28 lines
729 B
Docker

# ============== download stage ==================
FROM alpine as downloader
WORKDIR /download
ENV VSTYPE stable
ENV VSVERSION 1.13.0
RUN wget "https://cdn.vintagestory.at/gamefiles/${VSTYPE}/vs_server_${VSVERSION}.tar.gz"
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
# CMD [ "mono" , "VintagestoryServer.exe", "--dataPath", "/gamedata/${VSDATAPATH}" ]
CMD mono VintagestoryServer.exe --dataPath "/gamedata/${VSDATAPATH}"