Skip to content

Commit

Permalink
Fix dockerfile executable path, add git to container (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl authored Oct 4, 2024
1 parent c4d94da commit bb23ea5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
FROM fedora
MAINTAINER langdon <langdon@fedoraproject.org>
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"]

0 comments on commit bb23ea5

Please sign in to comment.