Sign inSign up

mountainpass/squid-npm

By mountainpass

Updated over 2 years ago

A minimal container, running Squid on Alpine with SSLBump, designed for caching NPM/Yarn registries.

Image
Networking
Developer tools
Web servers
1

734

mountainpass/squid-npm repository overview

Http NPM/Yarn Registry Cache

(Updated 2024-06-13)

A minimal docker container, running Squid on Alpine with SSLBump, designed for caching NPM/Yarn registries.


Configuration

Custom URLs and Cache strategies can be updated by modifying the runtime file squid.conf.


Build Image

docker compose build --no-cache

Quick Start

docker compose up

Configure NPM proxy

npm config set http-proxy http://localhost:3128
npm config set https-proxy http://localhost:4128
npm config set cafile "$(pwd)/example/certs/CA.pem"

Configure Yarn proxy

yarn config set proxy http://localhost:3128 -g
yarn config set https-proxy http://localhost:4128 -g
yarn config set cafile "$(pwd)/example/certs/CA.pem" -g

Tag summary

Content type

Image

Digest

sha256:5f9538fd1

Size

11.4 MB

Last updated

over 2 years ago

docker pull mountainpass/squid-npm