@tejaswinidp96 thanks for responding. I was trying in otherway to explicitly referring dockerfile using --file option.
Not sure if it is right way to build image other than running it from current directory
I see what is happening here. If I understand it correctly you want the context from another directory, in which case you should proceed with something like:
enter on Docker through
cd /root/webapp-color
ls
cat Dockerfile
Copy Dockerfile then create Dockerfile by " touch Dockerfile"
" nano Dockerfile " to enter on Dockerfile
[ write this code in Dockerfile ]
FROM python:3.0-alpine >>>> to minimize the size
RUN pip install flask
COPY . /opt/
EXPOSE 8080
WORKDIR /opt/
ENTRYPOINT [“python”,“app.py”]