itzg / docker-minecraft-bedrock-server

Containerized Minecraft Bedrock Dedicated Server with selectable version
MIT License
1.1k stars 207 forks source link

/bin/sh: 1: /build/install-packages: not found #432

Closed smell-of-curry closed 2 weeks ago

smell-of-curry commented 2 weeks ago

Your recent commit (fc68969) on April 3rd caused failures when trying to build the project.

C:\bedrock-server\docker-minecraft-bedrock-server>docker build -t bds .
2024/07/10 11:17:49 http2: server: error reading preface from client //./pipe/dockerDesktopLinuxEngine: file has already been closed
[+] Building 0.6s (7/19)                                                                           docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 2.85kB                                                                             0.0s
 => [internal] load metadata for docker.io/library/debian:latest                                                   0.3s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 46B                                                                                   0.0s
 => CACHED [stage-0  1/14] FROM docker.io/library/debian:latest@sha256:1dc55ed6871771d4df68d393ed08d1ed9361c577cf  0.0s
 => CANCELED [stage-0  5/14] ADD https://github.com/itzg/easy-add/releases/download/0.8.7/easy-add_linux_amd64 /u  0.3s
 => [internal] load build context                                                                                  0.0s
 => => transferring context: 246B                                                                                  0.0s
 => ERROR [stage-0  2/14] RUN --mount=target=/build,source=build /build/install-packages                           0.2s
------
 > [stage-0  2/14] RUN --mount=target=/build,source=build /build/install-packages:
0.224 /bin/sh: 1: /build/install-packages: not found
------
Dockerfile:9
--------------------
   7 |     ARG TARGETVARIANT
   8 |
   9 | >>> RUN --mount=target=/build,source=build /build/install-packages
  10 |
  11 |     ARG BOX64_PACKAGE=box64
--------------------
ERROR: failed to solve: process "/bin/sh -c /build/install-packages" did not complete successfully: exit code: 127

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/pmy3k75kftin4dsbpfmvuxz4q

Because of this, the code can no longer be built into an image. Please either provide documentation to fix this, or revert the changes.

smell-of-curry commented 2 weeks ago

Problem is that the End of Line Sequence needs to be changed to LF