From bb23ea54a6663dcb84192302175bb8f24b25f3ee Mon Sep 17 00:00:00 2001 From: Morgan Date: Fri, 4 Oct 2024 18:25:02 +0200 Subject: [PATCH] Fix dockerfile executable path, add git to container (#354) --- examples/dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/dockerfile b/examples/dockerfile index 92a2f6ef..cb035540 100644 --- a/examples/dockerfile +++ b/examples/dockerfile @@ -1,17 +1,18 @@ FROM fedora MAINTAINER langdon RUN yum clean all && yum -y update -RUN yum -y install python python-pip make gcc krb5-devel python-devel python-setuptools python-gssapi python-nitrate python-dateutil python-urllib-gssapi +RUN yum -y install python python-pip make gcc krb5-devel python-devel python-setuptools python-gssapi python-nitrate python-dateutil python-urllib-gssapi git-core RUN yum clean all COPY . /opt/did WORKDIR /opt/did -RUN python setup.py install +RUN git config --global --add safe.directory '*' \ + && python setup.py install \ + && ln -s /did.conf /root/.did #RUN ln -s /user-home/.did /root/.did -RUN ln -s /did.conf /root/.did VOLUME /did.conf LABEL RUN docker run --privileged --rm -it -v $(HOME)/.did:/did.conf $(USERNAME)/did -ENTRYPOINT ["/usr/bin/did"] +ENTRYPOINT ["/opt/did/bin/did"]