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" ]