Skip to content

Commit

Permalink
Update Dockerfile in python docker wrapper docs (#3822)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashrafgt authored Jan 5, 2022
1 parent 11dbee2 commit 461c30b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doc/source/python/python_wrapping_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,21 @@ Define a Dockerfile in the same directory as your source code and requirements.t

```dockerfile
FROM python:3.7-slim
COPY . /app
WORKDIR /app

# Install python packages
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

# Copy source code
COPY . .

# Port for GRPC
EXPOSE 5000
# Port for REST
EXPOSE 9000

# Define environment variable
# Define environment variables
ENV MODEL_NAME MyModel
ENV SERVICE_TYPE MODEL

Expand Down

0 comments on commit 461c30b

Please sign in to comment.