updated to 1.18.10

This commit is contained in:
Maik Laschober 2023-09-04 21:16:04 +02:00
parent 152add7185
commit 8759d5a3e7
2 changed files with 10 additions and 6 deletions

View file

@ -1,14 +1,17 @@
# ============== download stage ==================
FROM alpine as downloader
FROM debian:latest as downloader
WORKDIR /download
ARG vs_type=stable
ARG vs_os=linux-x64
ARG vs_version=1.18.8
ARG vs_version=1.18.10
RUN apt update
RUN apt install -y wget
RUN wget "https://cdn.vintagestory.at/gamefiles/${vs_type}/vs_server_${vs_os}_${vs_version}.tar.gz"
RUN tar xzf "vs_server_${vs_os}_${vs_version}.tar.gz"
RUN tar -xvzf "vs_server_${vs_os}_${vs_version}.tar.gz"
RUN rm "vs_server_${vs_os}_${vs_version}.tar.gz"
# ============== runtime stage ==================
@ -16,11 +19,10 @@ FROM mcr.microsoft.com/dotnet/sdk:7.0 as runtime
WORKDIR /game
# Defaults
ENV VS_DATA_PATH=/gamedata/vs
COPY --from=downloader "./download/" "/game"
# Expose ports
EXPOSE 42420/tcp
# Execution command
CMD [ "dotnet", "VintagestoryServer.dll", "--dataPath", "${VS_DATA_PATH}" ]
CMD dotnet VintagestoryServer.dll --dataPath $VS_DATA_PATH

View file

@ -3,7 +3,9 @@ version: '3.8'
services:
# docker compose up -d vsserver-local
vsserver-local:
build: .
build:
no_cache: true
dockerfile: ./Dockerfile
container_name: vsserver-local
restart: unless-stopped
volumes: