Multiple working directories

Report a typo

In the Dockerfile below, you have two different working directories in different build stages. Which file will be present in the second working directory when you run the container?

FROM ubuntu:22.04

LABEL author=HyperUser

WORKDIR /home
COPY demo.txt .
WORKDIR /tmp
COPY newdemo.txt .

ENTRYPOINT ["ls"]
Select one option from the list
___

Create a free account to access the full topic