Updated Dockerfile to ignore "not registered" update-alternatives errors.

This commit is contained in:
yohan-b 2021-05-15 14:40:10 +02:00 committed by GitHub
parent aecd4fc927
commit 169d690e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ FROM debian:buster
MAINTAINER yohan <783b8c87@scimetis.net> MAINTAINER yohan <783b8c87@scimetis.net>
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y install openvpn procps iptables RUN apt-get update && apt-get -y install openvpn procps iptables
RUN update-alternatives --set iptables /usr/sbin/iptables-legacy; update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy; update-alternatives --set arptables /usr/sbin/arptables-legacy; update-alternatives --set ebtables /usr/sbin/ebtables-legacy RUN update-alternatives --set iptables /usr/sbin/iptables-legacy; update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy; update-alternatives --set arptables /usr/sbin/arptables-legacy; update-alternatives --set ebtables /usr/sbin/ebtables-legacy; true
RUN mv /etc/openvpn/openvpn.conf /etc/openvpn/openvpn.conf-bak || true RUN mv /etc/openvpn/openvpn.conf /etc/openvpn/openvpn.conf-bak || true
COPY entrypoint.sh /root/ COPY entrypoint.sh /root/
RUN chmod +x /root/entrypoint.sh RUN chmod +x /root/entrypoint.sh