Hi all, I am using docker to run my Clojure project locally but unfortunately when I run the command docker run -it --rm --name my-running-app clojure-app
the container runs for approximatively 1 min and stopped after that. I can see some WARN from my project which I believe is not the issue there when I run docker logs command.
The warnings are as follows:
WARN [dependency] - Unable to open requested logfile (/tmp/app.log) --- opening /tmp/uservice.log instead.
[main] WARN carica.core - (:value-in-dollar) isn't a valid config
My DockerFile:
FROM clojure:openjdk-8-lein-2.9.6
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY project.clj /usr/src/app/
RUN lein deps
COPY . /usr/src/app
RUN mv "$(lein uberjar | sed -n 's/^Created \(.*standalone\.jar\)/\1/p')" app-standalone.jar
CMD ["java", "-jar", "app-standalone.jar"]
Please note that I am fairly new to docker. Also, my apologies if this post is duplicated, but other online resources were not much of a help for me.
Aside from docker logs, are there any commands (Perhaps other logs) that will be helpful to understand the issue there?
There is a exit code 1: EXITED (1)
Again, I am unsure if the docker logs command is enough there to view logs and I am looking for other logs alternatives to understand the issue.
Thank you in advance for your help.