diff --git a/Dockerfile b/Dockerfile index 687daff..bf0d78f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,6 @@ FROM mcr.microsoft.com/dotnet/runtime:6.0 as runtime WORKDIR /data/ -RUN touch /data/settings.json - COPY --from=build /app/out/ /app/ ENTRYPOINT [ "dotnet", "/app/Server.dll" ] diff --git a/README.md b/README.md index 7e077f1..e915154 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,8 @@ If you have [docker](https://docs.docker.com/) on your system, you can use the e That way you don't have to build this server yourself or manually handle executables. ```shell -docker run --rm -it -p 1027:1027 -v smoo-data:/data/ ghcr.io/sanae6/smo-online-server +docker run --rm -it -p 1027:1027 -v "/$PWD/data/://data/" ghcr.io/sanae6/smo-online-server +# on Windows, depending on the shell you're using, $PWD might not work. Use an absolute path instead. ``` To always check for and use the latest server version you can add `--pull=always` to the options. diff --git a/docker-compose.yml b/docker-compose.yml index de8bb3f..5f77268 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,11 @@ version: "3.9" -volumes: - smoo-data: - services: server: image: ghcr.io/sanae6/smo-online-server + #build: . + #user: 1000:1000 ports: - 1027:1027 volumes: - - smoo-data:/data/ + - ./data/:/data/