1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-30 05:39:31 +02:00

add alpaca

This commit is contained in:
kev 2025-01-20 12:07:52 +08:00
parent 8f5457bafa
commit db8e84aee7
4 changed files with 45 additions and 1 deletions

View File

@ -257,6 +257,7 @@ A collection of delicious docker recipes.
## Proxy
- [x] alpaca
- [x] dante
- [x] delegated
- [x] fteproxy :+1:
@ -530,7 +531,7 @@ A collection of delicious docker recipes.
- [x] teamatldocker
- [x] confluence
- [x] jira
- [x] joseluisq/static-web-server
- [x] ghcr.io/static-web-server/static-web-server
- [x] openstitching/stitch
- [x] strapi/strapi
- [x] amancevice/superset

19
alpaca/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
#
# Dockerfile for alpaca
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ARG ALPACA_VERSION=v2.0.9
ARG ALPACA_FILE=alpaca_${ALPACA_VERSION}_linux-amd64
ARG ALPACA_URL=https://github.com/samuong/alpaca/releases/download/$ALPACA_VERSION/$ALPACA_FILE
ADD $ALPACA_URL /usr/local/bin/alpaca
RUN set -xe \
&& apk add --no-cache gcompat \
&& chmod +x /usr/local/bin/alpaca \
&& alpaca -version
ENTRYPOINT ["alpaca", "-l", "0.0.0.0", "-p", "3128"]

17
alpaca/README.md Normal file
View File

@ -0,0 +1,17 @@
alpaca
======
[Alpaca][1] is a local HTTP proxy for command-line tools. It supports proxy auto-configuration (PAC) files and NTLM authentication.
Sample proxy.pac
```javascript
function FindProxyForURL(url, host) {
return "DIRECT";
}
```
Read [this][2] to create your own.
[1]: https://github.com/samuong/alpaca
[2]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file

View File

@ -0,0 +1,7 @@
services:
alpaca:
image: vimagick/alpaca
command: -C http://url-to-proxy.pac
ports:
- "3128:3128"
restart: unless-stopped