diff --git a/Dockerfile b/Dockerfile index ad748dc..051188b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index f9b1f73..a6e3da9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: