File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,26 +6,20 @@ RUN apt-get update && \
66 python3 -m venv /venv && \
77 /venv/bin/pip install --upgrade pip
88
9- ADD https://files.niconi.org/api_dump.sqlite.7z /tmp
109ADD https://github.com/eugeneware/ffmpeg-static/releases/download/b6.0/ffmpeg-linux-x64 /usr/bin/ffmpeg
1110ADD https://www.7-zip.org/a/7z2301-linux-x64.tar.xz /tmp/
1211RUN tar -C /usr/bin -xvf /tmp/7z*.tar.xz 7zz
13- RUN mkdir /exract
14- WORKDIR /extract
15- RUN 7zz x /tmp/api_dump.sqlite.7z
1612COPY . /tmp/comiclib
1713RUN /venv/bin/pip install --no-cache-dir -U "/tmp/comiclib[full]"
1814RUN /venv/bin/pip install --no-cache-dir -U gunicorn
1915RUN mkdir /userdata
20- # RUN rm -r /tmp/*
2116
2217FROM gcr.io/distroless/python3-debian12
2318COPY --from=build-venv /venv /venv
2419COPY --from=build-venv /usr/bin/7zz /usr/bin
2520COPY --from=build-venv /usr/bin/ffmpeg /usr/bin
26- COPY --from=build-venv /extract/api_dump.sqlite /data/api_dump.sqlite
2721COPY --from=build-venv /userdata /userdata
28- ENV importEHdb_API_DUMP_PATH=/data/api_dump.sqlite content=/root/comiclib watch=False
22+ ENV content=/root/comiclib watch=False
2923EXPOSE 8000
3024WORKDIR /userdata
3125VOLUME /userdata
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ docker run -p 8000:8000 \
4242--mount type=bind,source=< USER_DATA_PATH> ,target=/userdata \
4343urenko/comiclib
4444```
45- ComicLib now runs at http://localhost:8000 .
45+ ComicLib now runs at http://localhost:8000 . If you want to use ` api_dump.sqlite ` , please put it under ` /userdata ` .
4646
4747P.S.: Monitoring comic folders is disabled by default for Docker currently.
4848
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ docker run -p 8000:8000 \
4242--mount type=bind,source=你的数据路径,target=/userdata \
4343urenko/comiclib
4444```
45- 现在 ComicLib 运行在了 http://localhost:8000 。
45+ 现在 ComicLib 运行在了 http://localhost:8000 。如果你想要使用 ` api_dump.sqlite ` , 请手动下载并将其放在 ` /userdata ` 下。
4646
4747注:目前监视漫画文件夹默认对 Docker 禁用。
4848
You can’t perform that action at this time.
0 commit comments