docker/ipnat/build/Dockerfile

33 lines
559 B
Docker
Raw Normal View History

2023-08-25 20:39:55 -07:00
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 \
locales \
iptables \
2025-01-18 10:46:47 -08:00
dnsutils \
2023-08-25 20:39:55 -07:00
&& \
# 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 ["bash"]
2025-01-18 10:46:47 -08:00
CMD ["/start.sh"]
2023-08-25 20:39:55 -07:00