I am trying to run golang code binary inside my docker container but I am unable to see the process inside the container or the log file generated using the code inside the binary. Please suggest if I am missing anything here.
FROM golang:1.19
WORKDIR /app
COPY main /app
CMD ["./main"]. # Tried ["/bin/bash", "-c", "./main"] or ./main
I have already tried using -d with running container and checked the logs.