1. Fix onnxruntime server docker file build failure. Tested with the notebook in ONNX tutorial, it works well.
2. Delete the docker files for the other EPs, because currently they don't work and I don't have enough time to update them.
* Use exec form of ENTRYPOINT for docker server
# Issue
The entrypoint currently uses the shell form - this prevents users from passing in any cmdline arguments... also passing a model_path in means the server only works in the envvar is set... however this is not what the error message says!
```
$ docker run -v /home/rakelkar/try/onnxzoo/style:/mnt/models -it mcr.microsoft.com/onnxruntime/server --model_path /mnt/models/model.onnx
Version: local_build
Commit ID: default
model_path must be the location of a valid file
Allowed options:
-h [ --help ] Shows a help message and exits
--log_level arg (=info) Logging level. Allowed options (case sensitive):
verbose, info, warning, error, fatal
--model_path arg Path to ONNX model
--address arg (=0.0.0.0) The base HTTP address
--http_port arg (=8001) HTTP port to listen to requests
--num_http_threads arg (=4) Number of http threads
--grpc_port arg (=50051) GRPC port to listen to requests
```
# Fix
1. remove the env var
2. use the exec form
* Update readme to use model_path arg
- Introduce Docker build ARG `ONNXRUNTIME_REPO`
to allow building Docker container based on a different git repo.
Example docker build command:
```bash
cd dockerfiles
docker build -t onnx-runtime \
--build-arg ONNXRUNTIME_REPO=https://github.com/jthelin/onnxruntime \
--build-arg ONNXRUNTIME_SERVER_BRANCH=my-branch \
-f Dockerfile.server .
```
- Add a basic `.dockerignore` file, to cut down the number of filles passed into the Docker build context.
* Adding the onnxruntime Dockerfile and instructions
* Adding the onnxruntime server Dockerfile with build and instructions
* Specify more details in instruction
* Update dockerfiles/README.md
Co-Authored-By: tianchijushi <huaimingyang@hotmail.com>
* Update Dockerfile.server
Specify the onnxruntime server build branch during git clone