Docker images are missing after building

I can make docker image but it disappear soon after building.
There is no error when i build the image.
I dont where to check so plz let me know what to do.
I’m using Docker version 19.03.5, build 633a0ea.
I dont event know it is the problem of Docker or Dockerfile.

Dockerfile

FROM ruby:2.5.5
ENV LANG C.UTF-8
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs && 
    curl -sL https://deb.nodesource.com/setup_7.x | bash - && 
    apt-get install nodejs

RUN apt-get update && apt-get install -y curl apt-transport-https wget && 
    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && 
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && 
    apt-get update && apt-get install -y yarn && 
    gem install bundler

WORKDIR /tmp
COPY Gemfile Gemfile
COPY Gemfile.lock Gemfile.lock
RUN bundle install

COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT [ "entrypoint.sh" ]

ENV APP_HOME /line_manager
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
COPY . /line_manager
RUN yarn upgrade

docker-compose.yml

version: '3'
services:
  mysql:
    image: mysql:5.7
    command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
    ports:
      - "3306:3306"
    volumes:
      - ./docker/mysql/volumes:/var/lib/mysql
    environment:
      MYSQL_USER: root
      MYSQL_PASSWORD: password
      MYSQL_ROOT_PASSWORD: password

  rails:
    build:
      context: .
      dockerfile: Dockerfile
    image: line_manager
    command: /bin/sh -c 'rm -rf tmp/pids/server.pid && bundle exec rails s'
    ports:
      - "3000:3000"
    volumes:
      - .:/usr/src/app/:cached
    environment:
      MYSQL_USER: root
      MYSQL_PASSWORD: password
      MYSQL_ROOT_PASSWORD: password
      MYSQL_HOST: mysql
      RAILS_ENV: development
    depends_on:
      - mysql
    tty: true
    stdin_open: true

Source: StackOverflow