'Make docker file from local image?

I have docker file which make image.

FROM public.ecr.aws/lambda/python:3.9

RUN export LANG=en_US.UTF-8
RUN export PYTHONUNBUFFERED=1 

docker build -f dockers/mydocker -t python .

then I would like to make images from this image.

There are listed image named basic docker images

Then in another Dockerfile.

FROM python
ADD ./Pipfile* ./
RUN pipenv install --ignore-pipfile 

When I try to build this dockerfile

There comes like this

FROM docker.io/library/python

Does this mean I can use local image to build next image?

I need to make local repository for this purpose ??

Or any other way to do this??



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source