FROM i386/debian:bullseye
COPY kerio-control-vpnclient-8.1.1-1212-p3-linux.deb /tmp/
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
 && dpkg --unpack /tmp/kerio-control-vpnclient-8.1.1-1212-p3-linux.deb \
 && rm -f /var/lib/dpkg/info/kerio-control-vpnclient.postinst \
 && apt-get install -y -f \
 && apt-get install -y -f supervisor debconf \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY supervisord.conf /etc/supervisor/conf.d/kerio.conf
WORKDIR /root
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
