failed deployment

Hello guys,

I have an issue when i try to deploy fly app. can someone help me please

thank you

C:\Users\Admin\RubymineProjects\ratebeer> flyctl deploy
==> Verifying app config
→ Verified app config
==> Building image
Remote builder fly-builder-black-waterfall-6230 ready
==> Creating build context
→ Creating build context done
==> Building image with Docker
→ docker host: 20.10.12 linux x86_64
[+] Building 0.2s (0/1)
[+] Building 25.5s (20/20) FINISHED
=> [internal] load remote build context 0.0s
=> copy /context / 0.1s
=> resolve image config for docker.io/docker/dockerfile:experimental 1.1s
=> CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5 0.0s
=> [internal] load metadata for Quay 0.4s
=> [base 1/4] FROM Quay 0.0s
=> CACHED [base 2/4] RUN mkdir /app 0.0s
=> CACHED [base 3/4] WORKDIR /app 0.0s
=> CACHED [base 4/4] RUN mkdir -p tmp/pids 0.0s
=> CACHED [build_deps 1/1] RUN --mount=type=cache,id=dev-apt-cache,sharing=locked,target=/var/cache/apt --mount=type=cache,id=dev-apt-lib,sharing=locked,target=/var/lib/apt 0.0s
=> CACHED [gems 1/3] RUN gem update --system --no-document && gem install -N bundler -v 2.3.22 0.0s
=> [gems 2/3] COPY Gemfile* ./ 0.0s
=> [gems 3/3] RUN bundle install && rm -rf vendor/bundle/ruby//cache 20.0s
=> CACHED [stage-3 1/7] RUN --mount=type=cache,id=prod-apt-cache,sharing=locked,target=/var/cache/apt --mount=type=cache,id=prod-apt-lib,sharing=locked,target=/var/lib/apt 0.0s
=> [stage-3 2/7] COPY --from=gems /app /app 0.6s
=> [stage-3 3/7] COPY --from=gems /usr/lib/fullstaq-ruby/versions /usr/lib/fullstaq-ruby/versions 0.5s
=> [stage-3 4/7] COPY --from=gems /usr/local/bundle /usr/local/bundle 0.2s
=> [stage-3 5/7] COPY . . 0.0s
=> [stage-3 6/7] RUN chmod +x /app/bin/
&& sed -i ‘s/ruby.exe/ruby/’ /app/bin/* && sed -i ‘/^#!/aDir.chdir File.expand_path(“…”, dir)’ /app/bin/* 0.3s
=> ERROR [stage-3 7/7] RUN bin/rails fly:build 0.3s

[stage-3 7/7] RUN bin/rails fly:build:
#20 0.252 /usr/bin/env: ‘ruby\r’: No such file or directory


Error failed to fetch an image or build from source: error building: executor failed running [/bin/bash -o pipefail -c ${BUILD_COMMAND}]: exit code: 127

PS C:\Users\Admin\RubymineProjects\ratebeer> flyctl open
Error app has not been deployed yet. Please try deploying your app first

PS C:\Users\Admin\RubymineProjects\ratebeer> flyctl deploy
==> Verifying app config
→ Verified app config
==> Building image
Remote builder fly-builder-black-waterfall-6230 ready
==> Creating build context
→ Creating build context done
==> Building image with Docker
→ docker host: 20.10.12 linux x86_64
=> [stage-3 5/7] COPY . . 0.0s
=> [stage-3 6/7] RUN chmod +x /app/bin/* && sed -i ‘s/ruby.exe/ruby/’ /app/bin/* && sed -i ‘/^#!/aDir.chdir File.expand_path(“…”, dir)’ /app/bin/* 0.4s
=> ERROR [stage-3 7/7] RUN bin/rails fly:build 0.3s

[stage-3 7/7] RUN bin/rails fly:build:
#20 0.331 /usr/bin/env: ‘ruby\r’: No such file or directory


Error failed to fetch an image or build from source: error building: executor failed running [/bin/bash -o pipefail -c ${BUILD_COMMAND}]: exit code: 127