Hi Team
============================================================
This is the question and Hint
============================================================
When a container is created using the image built with this Dockerfile, what is the command used to RUN
the application inside it.
Inspect the Dockerfile in the webapp-color
directory.
python app.py
docker run app
app.exe
pip install flask
Hint
Open the Dockerfile and look for ENTRYPOINT
command
===================================================
This is the dockerfile output on left hand side
$ cat Dockerfile
FROM python:3.6
RUN pip install flask
COPY . /opt/
EXPOSE 8080
WORKDIR /opt
ENTRYPOINT [“python”, “app.py”]
$
$
==============================================
The right answer appears to be " pip install flask " which is stated after RUN command.
-
Why this is not a right answer ?
-
Why is the hint and checks of this questions says the answer is in the ‘ENTRYPOINT’ command ?
The check also passed only for python app.py
waiting for your kind reply
with best regards
Pradeep Nehe