mirror of
https://github.com/Merith-TK/docker-vintagestory
synced 2025-07-01 11:57:17 +01:00
updated composer using custom build Dockerfile
This commit is contained in:
parent
9c17fcac50
commit
4301dc3e6c
5 changed files with 16 additions and 11 deletions
|
@ -3,9 +3,10 @@ FROM alpine as downloader
|
|||
|
||||
WORKDIR /download
|
||||
|
||||
ENV VSTYPE stable
|
||||
ENV VSVERSION 1.12.14
|
||||
|
||||
RUN wget "https://cdn.vintagestory.at/gamefiles/stable/vs_server_${VSVERSION}.tar.gz"
|
||||
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"
|
||||
|
||||
|
@ -20,8 +21,8 @@ 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}"
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 42420/tcp
|
Loading…
Add table
Add a link
Reference in a new issue