mirror of
https://github.com/Merith-TK/docker-vintagestory
synced 2025-07-01 11:27:17 +01:00
initial commit
This commit is contained in:
commit
9c17fcac50
8 changed files with 783 additions and 0 deletions
27
Dockerfile
Normal file
27
Dockerfile
Normal file
|
@ -0,0 +1,27 @@
|
|||
# ============== download stage ==================
|
||||
FROM alpine as downloader
|
||||
|
||||
WORKDIR /download
|
||||
|
||||
ENV VSVERSION 1.12.14
|
||||
|
||||
RUN wget "https://cdn.vintagestory.at/gamefiles/stable/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"
|
||||
|
||||
|
||||
# CMD [ "mono" , "VintagestoryServer.exe", "--dataPath", "/gamedata/${VSDATAPATH}" ]
|
||||
CMD mono VintagestoryServer.exe --dataPath "/gamedata/${VSDATAPATH}"
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 42420/tcp
|
Loading…
Add table
Add a link
Reference in a new issue