Skip to content

Commit 536680a

Browse files
committed
remove api_dump.sqlite from image, user should manual download
1 parent 0614703 commit 536680a

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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
109
ADD https://github.com/eugeneware/ffmpeg-static/releases/download/b6.0/ffmpeg-linux-x64 /usr/bin/ffmpeg
1110
ADD https://www.7-zip.org/a/7z2301-linux-x64.tar.xz /tmp/
1211
RUN 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
1612
COPY . /tmp/comiclib
1713
RUN /venv/bin/pip install --no-cache-dir -U "/tmp/comiclib[full]"
1814
RUN /venv/bin/pip install --no-cache-dir -U gunicorn
1915
RUN mkdir /userdata
20-
# RUN rm -r /tmp/*
2116

2217
FROM gcr.io/distroless/python3-debian12
2318
COPY --from=build-venv /venv /venv
2419
COPY --from=build-venv /usr/bin/7zz /usr/bin
2520
COPY --from=build-venv /usr/bin/ffmpeg /usr/bin
26-
COPY --from=build-venv /extract/api_dump.sqlite /data/api_dump.sqlite
2721
COPY --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
2923
EXPOSE 8000
3024
WORKDIR /userdata
3125
VOLUME /userdata

docs/en/docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ docker run -p 8000:8000 \
4242
--mount type=bind,source=<USER_DATA_PATH>,target=/userdata \
4343
urenko/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

4747
P.S.: Monitoring comic folders is disabled by default for Docker currently.
4848

docs/zh/docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ docker run -p 8000:8000 \
4242
--mount type=bind,source=你的数据路径,target=/userdata \
4343
urenko/comiclib
4444
```
45-
现在 ComicLib 运行在了 http://localhost:8000
45+
现在 ComicLib 运行在了 http://localhost:8000如果你想要使用 `api_dump.sqlite`, 请手动下载并将其放在 `/userdata` 下。
4646

4747
注:目前监视漫画文件夹默认对 Docker 禁用。
4848

0 commit comments

Comments
 (0)