From f66601a418bf3f9204fc5eddab117354440e438c Mon Sep 17 00:00:00 2001 From: Tristan Date: Mon, 6 Jun 2022 10:34:42 +0100 Subject: [PATCH] Add haproxy:haproxy user and update README --- Dockerfile | 5 +++-- README.md | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 16fe1a9..e2f2d6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,7 @@ RUN apt -q update && \ zlib1g && \ apt -qq -y --purge autoremove && \ apt -qq -y clean && \ - rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/cache/* /var/log/* + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/cache/* /var/log/* && \ + groupadd "haproxy" && useradd -g "haproxy" "haproxy" -CMD [ "/usr/local/sbin/haproxy", "-W", "-db", "-f", "/etc/haproxy/haproxy.cfg" ] +CMD [ "/usr/local/sbin/haproxy", "-W", "-db", "-f", "/usr/local/etc/haproxy/haproxy.cfg" ] diff --git a/README.md b/README.md index 671ac44..da5b29d 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,13 @@ Build scripts for HAProxy with QUIC -**PROJECT STATUS**: Alpha, untested, probably unstable +**PROJECT STATUS: Alpha, __not exhaustively tested yet__** ## Quickstart - docker run -it -v /path/to/haproxy.cfg:/etc/haproxy/haproxy.cfg:ro registry.gitlab.com/mangadex-pub/haproxy:2.6-bullseye + docker run -it \ + -v /path/to/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro \ + registry.gitlab.com/mangadex-pub/haproxy:2.6-bullseye ## Build it