From 123bc3c97a9ced41a88a87096f3cea1e855f23b6 Mon Sep 17 00:00:00 2001 From: genteure Date: Thu, 23 Jun 2022 17:46:17 +0800 Subject: [PATCH] Expose port 2356 in Dockerfile --- Dockerfile | 1 + Dockerfile.GitHubActions | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 87bacef..406a6da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,5 @@ WORKDIR /app VOLUME [ "/rec" ] COPY --from=0 /output /app ENTRYPOINT [ "/app/BililiveRecorder.Cli" ] +EXPOSE 2356/tcp CMD [ "run", "--bind", "http://*:2356", "/rec" ] diff --git a/Dockerfile.GitHubActions b/Dockerfile.GitHubActions index ee5e3b3..8449006 100644 --- a/Dockerfile.GitHubActions +++ b/Dockerfile.GitHubActions @@ -5,4 +5,5 @@ WORKDIR /app VOLUME [ "/rec" ] COPY ./BililiveRecorder.Cli/bin/docker_out /app ENTRYPOINT [ "dotnet", "/app/BililiveRecorder.Cli.dll" ] +EXPOSE 2356/tcp CMD [ "run", "--bind", "http://*:2356", "/rec" ]