From e409e4a16cd1b77a9e94b55220efdb719ebb015b Mon Sep 17 00:00:00 2001 From: whimsical-c4lic0 Date: Fri, 20 Feb 2026 02:52:52 -0600 Subject: [PATCH] Fix CLI project name for docker --- Dockerfile | 8 ++++---- docker/entrypoint.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 79094f2..b7a03ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ARG VERSION # Copy source code COPY ["OF DL.sln", "/src/OF DL.sln"] -COPY ["OF DL", "/src/OF DL"] +COPY ["OF DL.Cli", "/src/OF DL.Cli"] COPY ["OF DL.Core", "/src/OF DL.Core"] COPY ["OF DL.Gui", "/src/OF DL.Gui"] @@ -12,10 +12,10 @@ WORKDIR "/src" # Build release RUN dotnet publish "OF DL.Gui/OF DL.Gui.csproj" -p:WarningLevel=0 -p:Version=$VERSION -c Release -o outgui -RUN dotnet publish "OF DL/OF DL.Cli.csproj" -p:WarningLevel=0 -p:Version=$VERSION -c Release -o outcli +RUN dotnet publish "OF DL.Cli/OF DL.Cli.csproj" -p:WarningLevel=0 -p:Version=$VERSION -c Release -o outcli # Generate default config.conf files -RUN /src/outcli/OF\ DL --non-interactive || true && \ +RUN /src/outcli/OF\ DL.Cli --non-interactive || true && \ # Set download path in default config.conf to /data sed -e 's/DownloadPath = ""/DownloadPath = "\/data"/' /src/config.conf > /src/updated_config.conf && \ mv /src/updated_config.conf /src/config.conf @@ -53,7 +53,7 @@ COPY --from=build /src/outgui /app/gui # Copy default configuration files COPY --from=build /src/config.conf /default-config -COPY --from=build ["/src/OF DL/rules.json", "/default-config"] +COPY --from=build ["/src/OF DL.Cli/rules.json", "/default-config"] COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY docker/entrypoint.sh /app/entrypoint.sh diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 134cc10..c0f4af3 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -24,7 +24,7 @@ if [[ " $@ " =~ " --cli " ]]; then fi done - /app/cli/OF\ DL "${filtered_args[@]}" + /app/cli/OF\ DL.Cli "${filtered_args[@]}" else # GUI mode - start X server and window manager {