refactor(docker): migrate both images to Alpine
Replace node:20-slim/ubuntu:22.04 with node:20-alpine/alpine:3.21. Switch package management from apt to apk (--no-cache, no cleanup layer). Use Alpine addgroup/adduser in claude/Dockerfile. Update proxy to use squid user (Alpine convention) and /var/cache/squid cache path. Fix proxy/Dockerfile COPY path now that context is proxy/. Move webui-entrypoint.sh into claude/ to match its build context. Fix docker-compose.yml webui context to claude/, update proxy tmpfs path.
This commit is contained in:
parent
782370e014
commit
88805a3c24
9 changed files with 53 additions and 57 deletions
|
|
@ -14,7 +14,7 @@ cache_store_log none
|
|||
|
||||
# ─── No disk cache ────────────────────────────────────────────────────────────
|
||||
cache deny all
|
||||
coredump_dir /var/spool/squid
|
||||
coredump_dir /var/cache/squid
|
||||
|
||||
# ─── ACL Definitions ──────────────────────────────────────────────────────────
|
||||
acl SSL_ports port 443
|
||||
|
|
@ -26,6 +26,8 @@ acl CONNECT method CONNECT
|
|||
# Add domains here as needed. Leading dot matches all subdomains.
|
||||
acl allowed_sites dstdomain api.anthropic.com
|
||||
acl allowed_sites dstdomain statsig.anthropic.com
|
||||
acl allowed_sites dstdomain localhost
|
||||
acl allowed_sites dstdomain .local
|
||||
|
||||
# ─── Access rules ─────────────────────────────────────────────────────────────
|
||||
# Block requests to non-standard ports
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue