In this exercise, you will assist a client in containerizing their Python application.
The application code is located inside the exercise4/calc
directory. Follow the instructions in calc/setup.md to set up the application on your local system.
- It should accepts
python_version
,user
,user_id
as build arguments - It should make use of python_version to select base with tag
python_version
. - It should create non root user and group with given
user
anduser_id
group_id
,group_name
should be equal touser_id
anduser_name
respectively- Set working directory as
/home/<user_name>/src/app
docker build --build-arg=python_version=alpine3.18 -t calc:latest .
docker run calc
docker run calc add --help
docker run calc add 1 1 2 3 5 8 13 21