Spaces:
Runtime error
Runtime error
File size: 599 Bytes
68036c8 98dce72 583647e 68036c8 583647e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# 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"] |