workdir /data/ instead of /app/

This commit is contained in:
Robin C. Ladiges 2022-07-02 19:13:47 +02:00
parent 26e100ff72
commit c33453f902
No known key found for this signature in database
GPG Key ID: B494D3DF92661B99
1 changed files with 4 additions and 7 deletions

View File

@ -16,16 +16,13 @@ RUN dotnet publish ./Server/Server.csproj -c Release -o ./out/
FROM mcr.microsoft.com/dotnet/runtime:6.0 as runtime
WORKDIR /app/
WORKDIR /data/
RUN mkdir /data/ \
&& touch /data/settings.json \
&& ln -s /data/settings.json \
;
RUN touch /data/settings.json
COPY --from=build /app/out/ ./
COPY --from=build /app/out/ /app/
ENTRYPOINT [ "dotnet", "Server.dll" ]
ENTRYPOINT [ "dotnet", "/app/Server.dll" ]
EXPOSE 1027/tcp
VOLUME /data/