DEV Community

Discussion on: Art of building small containers

Collapse
 
naneri profile image
naneri

In this second stage of the Docker build:

FROM alpine as production
COPY --from=builder /app/main .
EXPOSE 8080
CMD ./main
Enter fullscreen mode Exit fullscreen mode

Is the COPY line correct? Because I though the folder should be just /app as there is no /main folder inside it or am I wrong?

Collapse
 
karanpratapsingh profile image
Karan Pratap Singh

Hey, so I am copying the binary called main from the build container main is not a dir