diff --git a/Dockerfile b/Dockerfile index 31d3bd2..6873d28 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,8 @@ COPY src /src/ RUN dotnet publish -c Release /src/FakeRelay.sln -o /app FROM mcr.microsoft.com/dotnet/aspnet:8.0.0-alpine3.18-${ARCH} -VOLUME ["/data"] +WORKDIR /app ENV CONFIG_PATH=/data/config.json COPY --from=builder /app /app COPY entrypoint.sh /app/entrypoint.sh -RUN ln -s /app/FakeRelay.Cli /bin/cli && ln -s /app/FakeRelay.Web /bin/web && chmod +x /app/entrypoint.sh ENTRYPOINT [ "/app/entrypoint.sh" ] diff --git a/entrypoint.sh b/entrypoint.sh old mode 100644 new mode 100755 index 4f3a785..3ca82ff --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/ash if [ "$1" = "web" ]; then - web + dotnet FakeRelay.Web.dll else - cli "$@" + dotnet FakeRelay.Cli.dll "$@" fi