File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
src/ansys/dyna/core/pre/Server Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff line change 1
1
***How to build docker image***
2
2
1. Create a empty folder
3
3
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
5
6
6
7
***Check the image***
7
8
1. Run 'docker images'
You can’t perform that action at this time.
0 commit comments