mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-02-20 15:56:36 -05:00
Refactor: Improve Docker build, add Tor support, use SeleniumBase
- Overhauled Dockerfile:
- Switched to python:3.10-slim base.
- Implemented multi-stage builds (base, standard, tor).
- Consolidated RUN layers for efficiency.
- Added locale/timezone setup.
- Added Tor setup and iptables configuration in dedicated stage/script.
- Replaced DrissionPage with SeleniumBase for Cloudflare bypassing.
- Added Tor support via `docker-compose.tor.yml` and `tor.sh` script.
- Updated `docker-compose.yml` to build locally and changed default port
to 8083.
- Added `docker-compose.dev.yml` and `docker-compose.tor.dev.yml`.
- Updated `entrypoint.sh` for timezone and sudo usage.
- Added/Updated environment variables (`TZ`, `USING_TOR`, etc.).
- Improved `.dockerignore`.
- Updated `readme.md` to reflect port changes, build process, document
`TZ`, and add details about the new Tor variant.
16 lines
346 B
YAML
16 lines
346 B
YAML
services:
|
|
calibre-web-automated-book-downloader-dev:
|
|
extends:
|
|
file: ./docker-compose.yml
|
|
service: calibre-web-automated-book-downloader
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: cwa-bd
|
|
environment:
|
|
LOG_LEVEL: debug
|
|
FLASK_DEBUG: true
|
|
USE_DOH: true
|
|
CUSTOM_DNS: cloudflare
|
|
|