mirror of
https://github.com/angristan/openvpn-install.git
synced 2026-04-29 06:48:05 +02:00
27 lines
705 B
Docker
27 lines
705 B
Docker
# checkov:skip=CKV_DOCKER_2:Test container doesn't need healthcheck
|
|
# checkov:skip=CKV_DOCKER_3:OpenVPN client requires root for NET_ADMIN
|
|
FROM ubuntu:26.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Install OpenVPN client and testing tools
|
|
# dnsutils provides dig for DNS testing with Unbound
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
openvpn \
|
|
iproute2 \
|
|
iputils-ping \
|
|
procps \
|
|
dnsutils \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create TUN device directory (device will be mounted at runtime)
|
|
RUN mkdir -p /dev/net
|
|
|
|
# Copy test scripts
|
|
COPY test/client-entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
WORKDIR /etc/openvpn
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|