1
0
Fork 0
docker-easy-haproxy/Dockerfile
till 08de132450
Refactor: tried to refactor code
- move scripts to assets/scripts (and updated build)
 - put most logic into HaproxyConfigGenerator
 - created DockerLabelHandler for all label handling from previous code
 - added unit tests and fixtures to cover HaproxyConfigGenerator and DockerLabelHandler
 - added a Makefile with build (for docker build) and test targets
2020-06-05 16:46:40 +02:00

16 lines
366 B
Docker

FROM haproxy:2.1-alpine
WORKDIR /scripts
RUN apk add --no-cache bash python3 py-yaml supervisor docker
COPY requirements.txt /scripts
RUN pip3 install --upgrade pip \
&& pip install -r requirements.txt
COPY templates /scripts/templates/
COPY easymapping /scripts/easymapping/
COPY assets /
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf" ]