mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-15 19:22:19 +08:00
Use Asia/Shanghai as the timezone in docker
This commit is contained in:
parent
afdf66e917
commit
9fa19da9f5
|
@ -3,6 +3,8 @@ COPY . /src
|
|||
RUN cd /src/BililiveRecorder.Cli && dotnet build -o /output -c Release
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/runtime:5.0-alpine
|
||||
RUN apk add --no-cache tzdata
|
||||
ENV TZ=Asia/Shanghai
|
||||
COPY --from=0 /output /app
|
||||
VOLUME [ "/rec" ]
|
||||
WORKDIR /app
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
FROM mcr.microsoft.com/dotnet/runtime:5.0
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
COPY ./BililiveRecorder.Cli/bin/docker_out /app
|
||||
VOLUME [ "/rec" ]
|
||||
WORKDIR /app
|
||||
|
|
Loading…
Reference in New Issue
Block a user