load-balancer / Dockerfile
Vadnir's picture
Update Dockerfile
ec57b4e
Raw
History Blame Contribute Delete
599 Bytes
# Haproxy Dockerfile
#
# https://github.com/dockerfile/haproxy
#
# Pull base image.
#FROM github.com/dockerfile/ubuntu
#FROM haproxytech/haproxy-debian:2.7
FROM haproxy:2.4
USER root
RUN apt-get update
RUN apt-get install libcap2-bin -y
RUN setcap 'cap_net_bind_service=+ep' /usr/local/sbin/haproxy
EXPOSE 80
EXPOSE 443
# Install Haproxy.
# Add files.
ADD haproxy.cfg /etc/haproxy/haproxy.cfg
ADD start.bash /haproxy-start
# Define mountable directories.
VOLUME ["/haproxy-override"]
# Define working directory.
WORKDIR /etc/haproxy
# Define default command.
CMD ["bash", "/haproxy-start"]