In this second stage of the Docker build:
FROM alpine as production COPY --from=builder /app/main . EXPOSE 8080 CMD ./main
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?
Hey, so I am copying the binary called main from the build container main is not a dir
main
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
In this second stage of the Docker build:
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?
Hey, so I am copying the binary called
main
from the build containermain
is not a dir