-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a Dockerfile for Serving API to bundle the trained model
Rename Dockerfile for Tokenizer API Update README
- Loading branch information
Showing
3 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM tensorflow/serving | ||
|
||
ENV MODEL_BASE_PATH=/models | ||
ENV MODEL_NAME=sqli_model | ||
ENV KMP_AFFINITY=noverbose | ||
ENV TF_CPP_MIN_LOG_LEVEL=3 | ||
|
||
WORKDIR /models | ||
COPY ./sqli_model /models/sqli_model | ||
|
||
EXPOSE 8500 | ||
EXPOSE 8501 | ||
|
||
CMD tensorflow_model_server --port=8500 --rest_api_port=8501 --model_name=${MODEL_NAME} --model_base_path=${MODEL_BASE_PATH}/${MODEL_NAME} "$@" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters