FROM debian:bullseye USER root # Install all packages ENV DEBIAN_FRONTEND noninteractive RUN apt-get update --yes && \ apt-get upgrade --yes && \ apt-get install --yes --no-install-recommends \ bash \ #tini \ locales \ iptables \ && \ # Clean up and generate locales apt-get clean && rm -rf /var/lib/apt/lists/* && \ echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \ locale-gen # Requires cap-add NET_ADMIN NET_RAW EXPOSE 33 EXPOSE 993 EXPOSE 587 COPY start.sh /start.sh COPY iptables.sh /iptables.sh #ENTRYPOINT ["tini", "-g", "--"] ENTRYPOINT ["bash"] CMD ["start.sh"]