Skip to content

Commit 01e6cb4

Browse files
committed
feat(docker): updated docker file for sdk
1 parent c82bbf1 commit 01e6cb4

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

docker/Dockerfile

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
1-
#Import Python base image
1+
#Import Python Base Image(change version as needed)
22
FROM 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

0 commit comments

Comments
 (0)