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:
parent
266b13549b
commit
a56aaea410
@ -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"]
|
||||
|
||||
|
@ -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"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user