Skip to content

Commit 9a50131

Browse files
qgao007ZePan110ashahba
authored
Enable bash scr to to be path-independent using $0 to address ERROR: failed to solve: failed to read dockerfile: open Dockerfile.intel_hpu: no such file or director when following README (opea-project#808)
Signed-off-by: Qun Gao <[email protected]> Co-authored-by: ZePan110 <[email protected]> Co-authored-by: Abolfazl Shahbazi <[email protected]>
1 parent 52757b3 commit 9a50131

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

comps/llms/text-generation/vllm/langchain/dependency/build_docker_vllm.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# Get script directory
18+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
19+
echo "Script directory: $SCRIPT_DIR"
20+
cd $SCRIPT_DIR
21+
1722
# Set default values
1823
default_hw_mode="cpu"
1924

0 commit comments

Comments
 (0)