diff --git a/Dockerfile b/Dockerfile index f6b0256..eda8f5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,6 +48,8 @@ LABEL "org.opencontainers.image.version"="$IMAGE_VERSION" RUN yum update -y \ && yum install -y openssh-server sudo shadow-utils util-linux procps-ng jq openssl ec2-instance-connect \ && yum clean all +# Delete SELinux config file to prevent relabeling with contexts provided by the container's image +RUN rm -rf /etc/selinux/config COPY --from=builder /opt/bash /opt/bin/ COPY --from=builder /usr/share/licenses/bash /usr/share/licenses/bash