Vadnir commited on
Commit
583647e
·
1 Parent(s): 226c04b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -6
Dockerfile CHANGED
@@ -6,7 +6,19 @@
6
 
7
  # Pull base image.
8
  #FROM github.com/dockerfile/ubuntu
9
- FROM haproxytech/haproxy-debian:2.7
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
  # Install Haproxy.
12
 
@@ -21,8 +33,4 @@ VOLUME ["/haproxy-override"]
21
  WORKDIR /etc/haproxy
22
 
23
  # Define default command.
24
- CMD ["bash", "/haproxy-start"]
25
-
26
- # Expose ports.
27
- EXPOSE 80
28
- EXPOSE 443
 
6
 
7
  # Pull base image.
8
  #FROM github.com/dockerfile/ubuntu
9
+ #FROM haproxytech/haproxy-debian:2.7
10
+ FROM haproxy:2.4
11
+
12
+ USER root
13
+
14
+ RUN apt-get update
15
+ RUN apt-get install libcap2-bin -y
16
+ RUN setcap 'cap_net_bind_service=+ep' /usr/local/sbin/haproxy
17
+
18
+ EXPOSE 80
19
+ EXPOSE 443
20
+
21
+ USER haproxy
22
 
23
  # Install Haproxy.
24
 
 
33
  WORKDIR /etc/haproxy
34
 
35
  # Define default command.
36
+ CMD ["bash", "/haproxy-start"]