mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-26 20:26:00 +08:00
453e63c651
* feat: upgrade target framework to .NET 8.0 * refactor: fix obsolete warnings * chore: update AutoMapper package to version 13.0.1 * chore: suppress warnings * feat: upgrade Docker images to .NET 8.0
24 lines
579 B
Docker
24 lines
579 B
Docker
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
|
ENV TZ=Asia/Shanghai
|
|
|
|
ENV UMASK=022
|
|
ENV PUID=0
|
|
ENV PGID=0
|
|
|
|
WORKDIR /app
|
|
VOLUME [ "/rec" ]
|
|
|
|
COPY --from=tianon/gosu:1.17 /gosu /usr/local/bin/
|
|
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
|
COPY ./BililiveRecorder.Cli/bin/docker_out /app
|
|
|
|
RUN chmod a+x /usr/local/bin/docker-entrypoint.sh && \
|
|
chmod -R 777 /app && \
|
|
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
|
echo $TZ > /etc/timezone
|
|
|
|
EXPOSE 2356/tcp
|
|
|
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
|
CMD [ "run", "--bind", "http://*:2356", "/rec" ]
|