Skip to content

Commit 8cb395d

Browse files
committed
Update Dockerfile for kwserver
1 parent 1fadbad commit 8cb395d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM python:3.6
2-
RUN pip install grpcio protobuf
3-
COPY . /server
4-
CMD ["python", "/server/kwserver.py"]
1+
ARG PYTHON_VERSION
2+
FROM python:${PYTHON_VERSION}
3+
WORKDIR /server
4+
COPY . .
5+
RUN pip3 install grpcio protobuf
6+
CMD ["python3", "kwserver.py"]

src/ansys/dyna/core/pre/Server/readme_docker.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
***How to build docker image***
22
1. Create a empty folder
33
2. Copy Dockerfile kwserver.py kwprocess_pb2.py kwprocess_pb2_grpc.py keywordreader.so to the folder
4-
3. Enter the folder, run 'docker build -t ls-pre .'
4+
3. Enter the folder, run 'docker build --build-arg PYTHON_VERSION=3.8-slim-buster -t ls-pre .'
5+
note:set PYTHON_VERSION as the python version you used
56

67
***Check the image***
78
1. Run 'docker images'

0 commit comments

Comments
 (0)