DEV Community

Discussion on: Setting up a NestJS project with Docker for Back-End development

Collapse
 
eybel profile image
Abel Simon

I have a doubt. If I only run "docker-compose up prod" I dont have a '/dist' folder by then so why would you use "COPY --from=development /app/dist ./dist" ? Why dont we have a RUN npm build in the production target? If these are like 2 different images, why are depending on development dist folder, or the whole process takes place when built? Im somehow confused there