Expose port 2356 in Dockerfile

This commit is contained in:
genteure 2022-06-23 17:46:17 +08:00
parent d454418980
commit 123bc3c97a
2 changed files with 2 additions and 0 deletions

View File

@ -9,4 +9,5 @@ WORKDIR /app
VOLUME [ "/rec" ] VOLUME [ "/rec" ]
COPY --from=0 /output /app COPY --from=0 /output /app
ENTRYPOINT [ "/app/BililiveRecorder.Cli" ] ENTRYPOINT [ "/app/BililiveRecorder.Cli" ]
EXPOSE 2356/tcp
CMD [ "run", "--bind", "http://*:2356", "/rec" ] CMD [ "run", "--bind", "http://*:2356", "/rec" ]

View File

@ -5,4 +5,5 @@ WORKDIR /app
VOLUME [ "/rec" ] VOLUME [ "/rec" ]
COPY ./BililiveRecorder.Cli/bin/docker_out /app COPY ./BililiveRecorder.Cli/bin/docker_out /app
ENTRYPOINT [ "dotnet", "/app/BililiveRecorder.Cli.dll" ] ENTRYPOINT [ "dotnet", "/app/BililiveRecorder.Cli.dll" ]
EXPOSE 2356/tcp
CMD [ "run", "--bind", "http://*:2356", "/rec" ] CMD [ "run", "--bind", "http://*:2356", "/rec" ]