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