blob: 7b227cc6cc1bc23678b2a913d22898b0ffa1b988 [file] [log] [blame]
ARG VM_IMAGE_NAME=rockylinux
ARG VM_IMAGE_VERSION=8
FROM ${VM_IMAGE_NAME}:${VM_IMAGE_VERSION}
# hadolint ignore=DL3005,DL3008,DL3033
RUN yum install -y \
iptables \
iproute \
sudo \
ca-certificates \
&& update-ca-trust \
&& yum clean all \
&& rm -rf /var/cache/yum
# Add a user that will run the application. This allows running as this user and capture iptables
RUN useradd -m --uid 1338 application && \
echo "application ALL=NOPASSWD: ALL" >> /etc/sudoers