在Heroku上使用Docker时缺lessGemfile

我正在尝试Heroku的docker插件,只是在本地开始。 当我运行docker-compose up web ,出现以下错误:

 Building web Step 1 : FROM heroku/ruby # Executing 7 build triggers... Step 1 : COPY Gemfile Gemfile.lock /app/user/ ERROR: Service 'web' failed to build: lstat Gemfile: no such file or directory 

这是我docker-compose.yml

 web: build: . command: 'bash -c ''bundle exec puma -C config/puma.rb''' working_dir: /app/user environment: PORT: 8080 DATABASE_URL: 'postgres://postgres:@herokuPostgresql:5432/postgres' ports: - '8080:8080' links: - herokuPostgresql shell: build: . command: bash working_dir: /app/user environment: PORT: 8080 DATABASE_URL: 'postgres://postgres:@herokuPostgresql:5432/postgres' ports: - '8080:8080' links: - herokuPostgresql volumes: - '.:/app/user' herokuPostgresql: image: postgres 

为什么Gemfile缺失,但最重要的是它应该如何为我的docker?