1
1
Fork 0
mirror of https://github.com/containers/udica synced 2024-05-10 23:36:11 +02:00
udica/Dockerfile
Vit Mojzis aa3561d4de Move policy templates to container-selinux repo
Move udica policy templates to container-selinux package so that
administrators can deploy udica-generated policies on OpenShift nodes
without installing udica everywhere.

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2021-09-13 16:21:41 +02:00

33 lines
664 B
Docker

FROM fedora:30
USER root
# Update image
RUN dnf update --disableplugin=subscription-manager -y && \
rm -rf /var/cache/yum
# Install dependencies
RUN dnf install --disableplugin=subscription-manager -y \
container-selinux \
python3 \
python3-setools \
systemd-devel \
policycoreutils \
policycoreutils-python-utils \
&& rm -rf /var/cache/yum
# build udica
WORKDIR /tmp
COPY udica/ udica/udica/
COPY LICENSE udica/
COPY README.md udica/
COPY setup.py udica/
WORKDIR /tmp/udica
RUN python3 setup.py install
WORKDIR /
# Clean up
RUN rm -rf /tmp/udica/
ENTRYPOINT ["/usr/bin/udica"]