update: Dockerfile for crawler

fix: incorrect condition in logger
This commit is contained in:
alikia2x (寒寒) 2025-05-06 03:24:08 +08:00
parent 95681dcbf3
commit cd8fe502ba
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6
2 changed files with 8 additions and 2 deletions

View File

@ -8,6 +8,12 @@ RUN bun i
RUN mkdir -p /app/logs
RUN apt update && apt install -y curl
RUN ln -s /bin/uname /usr/bin/uname
RUN /bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/install.sh)"
WORKDIR packages/crawler
CMD ["bun", "all"]

View File

@ -24,9 +24,9 @@ const createTransport = (level: string, filename: string) => {
let maxsize = undefined;
let maxFiles = undefined;
let tailable = undefined;
if (level === "verbose") {
if (level === "silly") {
maxsize = 500 * MB;
maxFiles = 10;
maxFiles = undefined;
tailable = false;
} else if (level === "warn") {
maxsize = 10 * MB;