File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,12 @@ RUN git clone https://github.com/metacall/embedding-python-example.git \
49
49
&& cmake .. \
50
50
&& cmake --build . --target install
51
51
52
- # Run the executable
53
- RUN export LOADER_LIBRARY_PATH="/usr/local/lib" \
54
- && export LOADER_SCRIPT_PATH="`pwd`/embedding-python-example" \
55
- && embedding_python_example
52
+ # Env vars for MetaCall
53
+ ENV LOADER_LIBRARY_PATH="/usr/local/lib" \
54
+ LOADER_SCRIPT_PATH="/root/embedding-python-example"
55
+
56
+ # Run the executable (testing)
57
+ RUN embedding_python_example
58
+
59
+ # Set up the entry point
60
+ CMD [ "embedding_python_example" ]
Original file line number Diff line number Diff line change @@ -37,5 +37,5 @@ Building and running with Docker:
37
37
38
38
``` bash
39
39
docker build --build-arg DISABLE_CACHE=` date +%s` -t metacall/embedding-python-example .
40
- docker run --rm -it metacall/embedding-python-example embedding_python_example
40
+ docker run --rm -it metacall/embedding-python-example
41
41
```
You can’t perform that action at this time.
0 commit comments