Skip to content

window11 #3

@SpxZhu

Description

@SpxZhu

#1 [internal] load local bake definitions
#1 reading from stdin 565B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 868B done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/ubuntu:24.04
#3 ...

#4 [internal] load metadata for docker.io/library/rust:latest
#4 DONE 48.8s

#3 [internal] load metadata for docker.io/library/ubuntu:24.04
#3 DONE 49.1s

#5 [internal] load .dockerignore
#5 transferring context: 2B done
#5 DONE 0.0s

#6 [builder 1/5] FROM docker.io/library/rust:latest@sha256:7e322aa1b876cbb977e0df46812af6c4e8be2efbfb2ce3712c28a93ba2968726
#6 DONE 0.0s

#7 [stage-1 1/4] FROM docker.io/library/ubuntu:24.04@sha256:d1e2e92c075e5ca139d51a140fff46f84315c0fdce203eab2807c7e495eff4f9
#7 DONE 0.0s

#8 [stage-1 2/4] WORKDIR /app
#8 CACHED

#9 [stage-1 3/4] RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
#9 CACHED

#10 [internal] load build context
#10 transferring context: 71.51MB 5.0s
#10 transferring context: 141.30MB 10.0s
#10 transferring context: 197.59MB 14.1s done
#10 DONE 14.1s

#11 [builder 2/5] WORKDIR /app
#11 CACHED

#12 [builder 3/5] COPY . .
#12 DONE 0.4s

#13 [builder 4/5] RUN apt-get update && apt-get install -y protobuf-compiler libprotobuf-dev
#13 1.541 Hit:1 http://deb.debian.org/debian trixie InRelease
#13 2.187 Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
#13 2.837 Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
#13 4.922 Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9670 kB]
#13 5.824 Get:5 http://deb.debian.org/debian trixie-updates/main amd64 Packages [5412 B]
#13 6.630 Get:6 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [111 kB]
#13 6.656 Fetched 9878 kB in 6s (1716 kB/s)
#13 6.656 Reading package lists...
#13 7.137 Reading package lists...
#13 7.560 Building dependency tree...
#13 7.661 Reading state information...
#13 7.794 The following additional packages will be installed:
#13 7.795 libprotobuf-lite32t64 libprotobuf32t64 libprotoc32t64
#13 7.796 Suggested packages:
#13 7.796 protobuf-mode-el
#13 7.843 The following NEW packages will be installed:
#13 7.843 libprotobuf-dev libprotobuf-lite32t64 libprotobuf32t64 libprotoc32t64
#13 7.843 protobuf-compiler
#13 9.092 0 upgraded, 5 newly installed, 0 to remove and 14 not upgraded.
#13 9.092 Need to get 3592 kB of archives.
#13 9.092 After this operation, 20.5 MB of additional disk space will be used.
#13 9.092 Get:1 http://deb.debian.org/debian trixie/main amd64 libprotobuf32t64 amd64 3.21.12-11 [983 kB]
#13 10.05 Get:2 http://deb.debian.org/debian trixie/main amd64 libprotobuf-lite32t64 amd64 3.21.12-11 [274 kB]
#13 11.25 Get:3 http://deb.debian.org/debian trixie/main amd64 libprotobuf-dev amd64 3.21.12-11 [1328 kB]
#13 12.41 Get:4 http://deb.debian.org/debian trixie/main amd64 libprotoc32t64 amd64 3.21.12-11 [922 kB]
#13 13.19 Get:5 http://deb.debian.org/debian trixie/main amd64 protobuf-compiler amd64 3.21.12-11 [84.7 kB]
#13 13.36 debconf: unable to initialize frontend: Dialog
#13 13.36 debconf: (TERM is not set, so the dialog frontend is not usable.)
#13 13.36 debconf: falling back to frontend: Readline
#13 13.38 debconf: unable to initialize frontend: Readline
#13 13.38 debconf: (This frontend requires a controlling tty.)
#13 13.38 debconf: falling back to frontend: Teletype
#13 13.38 debconf: unable to initialize frontend: Teletype
#13 13.38 debconf: (This frontend requires a controlling tty.)
#13 13.38 debconf: falling back to frontend: Noninteractive
#13 13.85 Fetched 3592 kB in 5s (672 kB/s)
#13 13.88 Selecting previously unselected package libprotobuf32t64:amd64.
(Reading database ... 26066 files and directories currently installed.)
#13 13.96 Preparing to unpack .../libprotobuf32t64_3.21.12-11_amd64.deb ...
#13 13.97 Unpacking libprotobuf32t64:amd64 (3.21.12-11) ...
#13 14.04 Selecting previously unselected package libprotobuf-lite32t64:amd64.
#13 14.04 Preparing to unpack .../libprotobuf-lite32t64_3.21.12-11_amd64.deb ...
#13 14.04 Unpacking libprotobuf-lite32t64:amd64 (3.21.12-11) ...
#13 14.08 Selecting previously unselected package libprotobuf-dev:amd64.
#13 14.08 Preparing to unpack .../libprotobuf-dev_3.21.12-11_amd64.deb ...
#13 14.08 Unpacking libprotobuf-dev:amd64 (3.21.12-11) ...
#13 14.17 Selecting previously unselected package libprotoc32t64:amd64.
#13 14.17 Preparing to unpack .../libprotoc32t64_3.21.12-11_amd64.deb ...
#13 14.18 Unpacking libprotoc32t64:amd64 (3.21.12-11) ...
#13 14.23 Selecting previously unselected package protobuf-compiler.
#13 14.23 Preparing to unpack .../protobuf-compiler_3.21.12-11_amd64.deb ...
#13 14.24 Unpacking protobuf-compiler (3.21.12-11) ...
#13 14.28 Setting up libprotobuf-lite32t64:amd64 (3.21.12-11) ...
#13 14.29 Setting up libprotobuf32t64:amd64 (3.21.12-11) ...
#13 14.30 Setting up libprotobuf-dev:amd64 (3.21.12-11) ...
#13 14.31 Setting up libprotoc32t64:amd64 (3.21.12-11) ...
#13 14.32 Setting up protobuf-compiler (3.21.12-11) ...
#13 14.33 Processing triggers for libc-bin (2.41-12+deb13u1) ...
#13 DONE 14.5s

#14 [builder 5/5] RUN cargo build --release --bin cli-server
#14 0.343 error: could not find Cargo.toml in /app or any parent directory
#14 ERROR: process "/bin/sh -c cargo build --release --bin cli-server" did not complete successfully: exit code: 101

[builder 5/5] RUN cargo build --release --bin cli-server:
0.343 error: could not find Cargo.toml in /app or any parent directory


[+] up 0/1

  • Image cli-server-ls-transcoder Building 78.9s
    Dockerfile:11

9 | # 获取 gRPC 的必须依赖

10 | RUN apt-get update && apt-get install -y protobuf-compiler libprotobuf-dev

11 | >>> RUN cargo build --release --bin cli-server

12 |

13 | # 第二阶段:打包最小化运行镜像


failed to solve: process "/bin/sh -c cargo build --release --bin cli-server" did not complete successfully: exit code: 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions