23 lines
506 B
Docker
23 lines
506 B
Docker
# haproxy http/https proxy
|
|
ARG OP_MACHINE_NAME
|
|
|
|
#FROM balenalib/${OP_MACHINE_NAME:-%%RESIN_MACHINE_NAME%%}-debian:buster
|
|
FROM lpenz/devuan-beowulf-armhf-minbase
|
|
|
|
RUN echo "deb http://deb.devuan.org/merged/ beowulf main contrib non-free" > /etc/apt/sources.list
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y haproxy ssl-cert && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /opt/haproxy
|
|
|
|
COPY haproxy.cfg run.sh ./
|
|
|
|
VOLUME /opt/haproxy/data
|
|
|
|
EXPOSE 80 443
|
|
|
|
CMD ["/opt/haproxy/run.sh"]
|