File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed
Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change 1- # Import Python base image
1+ # Import Python Base Image(change version as needed)
22FROM python:3-slim
33
4- # Install Git
5- RUN apt-get update && \
6- apt list -a git && \
7- apt-get install -y --no-install-recommends git=1:2.20.1-2 && \
8- apt-get clean && \
9- rm -rf /var/lib/apt/lists/*
4+ # Install the python SDK
5+ RUN pip install --upgrade ibm-watson==3.2.0
106
11- # Clone SDK repo to app directory
12- RUN git clone https://github.com/watson-developer-cloud/python-sdk.git
137
14- # Install the SDK
15- RUN pip install --upgrade ibm-watson==3.2.0
16- # #Set working directory to python-sdk
17- WORKDIR /python-sdk
188
19- # Install test dependencies and run tests to verify installation.
20- RUN pip install -r requirements-dev.txt
219
22- # Run tests to verify installation
23- CMD ["py.test" ,"test" ]
2410
2511
You can’t perform that action at this time.
0 commit comments