diff --git a/Dockerfile b/Dockerfile index 3c0ab21..4f9c3f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ]