Yes, you're right. In the first stage, the /app folder contains all files due to the COPY . . command. In the second stage, the only thing in the /app folder are the contents of the /app/build folder from stage one (copy --from=builder /app/build .)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
As I understand in both stages /app directory are not the same?
Yes, you're right. In the first stage, the
/app
folder contains all files due to theCOPY . .
command. In the second stage, the only thing in the/app
folder are the contents of the/app/build
folder from stage one (copy --from=builder /app/build .
)