v0.27.1
This commit is contained in:
1 parent
3a2eb4fe79
commit
e0194fbaff
63 files changed
+1553
-379
No files matched your search
+3
-8
@@ -7,13 +7,8 @@ RUN if [ ! -f Cargo.lock ]; then cargo generate-lockfile; fi \
|
||||
|
||||
FROM debian:trixie-slim AS runtime
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates python3 python3-venv openssl \
|
||||
&& python3 -m venv /opt/rustproxy-certbot \
|
||||
&& /opt/rustproxy-certbot/bin/pip install --no-cache-dir \
|
||||
'certbot==5.8.0' \
|
||||
'certbot-dns-cloudflare==5.8.0' \
|
||||
'certbot-dns-ovh==5.8.0' \
|
||||
'certbot-dns-rfc2136==5.8.0' \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates python3 python3-venv python3-pip openssl certbot \
|
||||
python3-certbot-dns-cloudflare python3-certbot-dns-ovh python3-certbot-dns-rfc2136 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& groupadd --system --gid 10001 rustproxy \
|
||||
&& useradd --system --uid 10001 --gid rustproxy --home /var/lib/rustproxy --shell /usr/sbin/nologin rustproxy \
|
||||
@@ -24,7 +19,7 @@ USER rustproxy:rustproxy
|
||||
ENV RUST_PROXY_DATA_DIR=/var/lib/rustproxy \
|
||||
RUST_PROXY_PROXY_LISTEN=0.0.0.0:8080 \
|
||||
RUST_PROXY_ADMIN_LISTEN=127.0.0.1:9090 \
|
||||
PATH=/opt/rustproxy-certbot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
VOLUME ["/var/lib/rustproxy"]
|
||||
EXPOSE 8080 8443 9090
|
||||
ENTRYPOINT ["/usr/local/bin/rust-proxy"]
|
||||
|
||||
Reference in new issue
Block a user