File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ set krversion = 9.3
3+ set pyversion = 3.11.2-alpine3.17
4+ echo " Building kratos %krversion% on python %pyversion% "
5+ docker build --build-arg version=%krversion% --build-arg pyversion=%pyversion% -t kratos-run:%krversion% -py%pyversion% .
6+ docker tag kratos-run:%krversion% fjgarate/kratos-run:%krversion%
7+ @ REM docker push fjgarate/kratos-run:%krversion%
8+
9+ @ REM docker build -t -t kratos-run:latest .
10+ @ REM docker tag kratos-run:latest fjgarate/kratos-run:latest
11+ @ REM docker push fjgarate/kratos-run:latest
Original file line number Diff line number Diff line change 1- FROM python:3.9
1+ # Default values. Use --build-arg on build to change
2+ ARG pyversion=3.10
23
3- RUN pip install KratosMultiphysics-all numpy
4+ # Base pyton image
5+ FROM python:3.10.10-alpine3.17
6+
7+ ARG krversion=9.3
8+ ENV krversion=9.3
9+
10+ # Update pip
11+ RUN pip install --upgrade pip
12+
13+ # Install Kratos and dependencies
14+ RUN python3 -m pip install KratosMultiphysics-all==$krversion numpy
15+
16+ # Prepare run folder
417WORKDIR "/model"
518RUN chmod 777 /model
19+
20+ # Kratos will start on docker run
621ENTRYPOINT [ "python3", "MainKratos.py" ]
722
8- # docker build --tag="kratos-run:latest" -t kratos-run .
9- # docker tag kratos-run:latest fjgarate/kratos-run:latest
10- # docker push fjgarate/kratos-run:0.0.1
23+ # docker build -t kratos-run .
24+ # docker run -rm -it --entrypoint bash kratos-run
You can’t perform that action at this time.
0 commit comments