am trying to start my elixir application using docker, but the container shuts down as I start it. What am i doing wrong?
FROM elixir:latest RUN mkdir /app COPY . /app WORKDIR /app RUN mix local.hex --force RUN mix deps.get RUN mix do compile
Then I build a docker image using
docker build -t myapp:latest .
Now running the container
docker run --name myapp myapp:latest
The container starts and shutdowns instantly. Is there a way that the container should keep running and i can access the container using this command
docker exec -it myapp bash