Skip to content

Commit bb23ea5

Browse files
authored
Fix dockerfile executable path, add git to container (#354)
1 parent c4d94da commit bb23ea5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
FROM fedora
22
MAINTAINER langdon <[email protected]>
33
RUN yum clean all && yum -y update
4-
RUN yum -y install python python-pip make gcc krb5-devel python-devel python-setuptools python-gssapi python-nitrate python-dateutil python-urllib-gssapi
4+
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
55
RUN yum clean all
66

77
COPY . /opt/did
88
WORKDIR /opt/did
9-
RUN python setup.py install
9+
RUN git config --global --add safe.directory '*' \
10+
&& python setup.py install \
11+
&& ln -s /did.conf /root/.did
1012
#RUN ln -s /user-home/.did /root/.did
11-
RUN ln -s /did.conf /root/.did
1213

1314
VOLUME /did.conf
1415

1516
LABEL RUN docker run --privileged --rm -it -v $(HOME)/.did:/did.conf $(USERNAME)/did
1617

17-
ENTRYPOINT ["/usr/bin/did"]
18+
ENTRYPOINT ["/opt/did/bin/did"]

0 commit comments

Comments
 (0)