Set absolute path for docker entrypoint

In case dragonflow is used as a base image for another docker image, and the
WORKDIR is set to something other than /opt/dragonflow before running the
container, the call to run_dragonflow.sh will fail as the reference is relative
so it will not be found.

Change-Id: If9f25f94520fd74ab14658cf63f43c940da7b2ea
This commit is contained in:
Shachar Snapiri 2018-12-30 12:55:13 +02:00
parent 266b13549b
commit a56aaea410
2 changed files with 2 additions and 2 deletions

View File

@ -21,5 +21,5 @@ COPY . /opt/dragonflow/
WORKDIR /opt/dragonflow
RUN pip install -e .
ENTRYPOINT ["./tools/run_dragonflow.sh"]
ENTRYPOINT ["/opt/dragonflow/tools/run_dragonflow.sh"]

View File

@ -17,5 +17,5 @@ COPY . /opt/dragonflow/
WORKDIR /opt/dragonflow
RUN pip install -e .
ENTRYPOINT ["./tools/run_dragonflow.sh"]
ENTRYPOINT ["/opt/dragonflow/tools/run_dragonflow.sh"]