Skip to content

Commit

Permalink
ci: 尝试修复镜像运行
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoaer committed Apr 12, 2024
1 parent 630670b commit 8c18278
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
mv ./targets/Linux-aarch64-bili-sync-rs ./bili-sync-rs; \
fi

RUN chmod +x ./bili-sync-rs

FROM scratch

WORKDIR /app

ENV LANG=zh_CN.UTF-8 \
TZ=Asia/Shanghai \
HOME=/app
HOME=/app \
RUST_BACKTRACE=1 \
RUST_LOG=None,bili_sync=info

COPY --from=base /app/bili-sync-rs /app/bili-sync-rs

RUN chmod +x /app/bili-sync-rs

ENTRYPOINT [ "/app/bili-sync-rs" ]

VOLUME [ "/app/.config/bili-sync" ]
Expand Down

0 comments on commit 8c18278

Please sign in to comment.