mirror of
https://github.com/containers/udica
synced 2024-09-23 10:00:59 +02:00
8ae9cd2f29
This adds a dockerfile which allows you to build a container for udica from source. It also includes a Makefile that'll allow you to build the image with your preferred command (the default is podman and the default tag is "latest"). Note that in ordre to use udica as a container, you need to bind-mount the following directories to it: * /sys/fs/selinux * /etc/selinux * /var/lib/selinux
32 lines
632 B
Docker
32 lines
632 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 \
|
|
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"]
|