2024-11-22 22:52:28 +08:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
2021-06-23 17:59:59 +08:00
|
|
|
ENV TZ=Asia/Shanghai
|
2024-06-22 22:53:04 +08:00
|
|
|
|
|
|
|
ENV UMASK=022
|
2024-07-07 15:04:22 +08:00
|
|
|
ENV PUID=0
|
|
|
|
ENV PGID=0
|
2024-06-22 22:53:04 +08:00
|
|
|
|
2021-06-17 23:41:41 +08:00
|
|
|
WORKDIR /app
|
2022-05-19 18:11:03 +08:00
|
|
|
VOLUME [ "/rec" ]
|
2024-06-22 22:53:04 +08:00
|
|
|
|
2024-07-07 15:04:22 +08:00
|
|
|
COPY --from=tianon/gosu:1.17 /gosu /usr/local/bin/
|
2024-06-22 22:53:04 +08:00
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
2022-05-19 18:11:03 +08:00
|
|
|
COPY ./BililiveRecorder.Cli/bin/docker_out /app
|
2024-06-22 22:53:04 +08:00
|
|
|
|
2024-07-07 15:04:22 +08:00
|
|
|
RUN chmod a+x /usr/local/bin/docker-entrypoint.sh && \
|
|
|
|
chmod -R 777 /app && \
|
2024-06-22 22:53:04 +08:00
|
|
|
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
|
|
|
echo $TZ > /etc/timezone
|
|
|
|
|
2022-06-23 17:46:17 +08:00
|
|
|
EXPOSE 2356/tcp
|
2024-06-22 22:53:04 +08:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
2022-05-19 18:11:03 +08:00
|
|
|
CMD [ "run", "--bind", "http://*:2356", "/rec" ]
|