We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46199e2 commit 326384bCopy full SHA for 326384b
Dockerfile
@@ -5,6 +5,11 @@ RUN microdnf update -y
5
# If you edit this version number, edit it here *and* the LABEL below:
6
RUN microdnf install -y haproxy22
7
8
+# Creating haproxy user and group
9
+RUN microdnf install -y shadow-utils
10
+RUN groupadd haproxygroup
11
+RUN useradd -g haproxygroup haproxyuser
12
+
13
LABEL maintainer="Guillaume Abrioux <[email protected]>"
14
LABEL com.redhat.component="rhceph-haproxy-container"
15
LABEL name="haproxy"
@@ -26,4 +31,6 @@ COPY docker-entrypoint.sh /usr/local/bin/
26
31
RUN ln -s usr/local/bin/docker-entrypoint.sh /
27
32
ENTRYPOINT ["docker-entrypoint.sh"]
28
33
34
+USER haproxyuser
35
29
36
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
0 commit comments