DEV Community

Discussion on: Run a React App in a Docker Container

Collapse
 
hanuz06 profile image
Andrey Li

As I understand in both stages /app directory are not the same?

Collapse
 
peterj profile image
Peter Jausovec

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 .)