---
id: "c18d9e4a-f6b4-4f6e-bfb5-b77c958f5534"
number: 74
title: "[Bug] Serveur non lancable"
status: "qa"
priority: "critical"
sprint: null
links: []
agentRefs: [{"agentId":"57695b92-24d0-4876-837c-76116e70a6ae","role":"assigned"}]
createdBy: {"kind":"user"}
updatedBy: {"kind":"agent","agent_id":"57695b92-24d0-4876-837c-76116e70a6ae"}
createdAt: 1784493302766
updatedAt: 1784526657602
version: 4
---
J'ai cette erreur quand j'essaie de build le serveur:
❯ docker compose up --build
[+] Building 5.2s (15/20)                                                                                               
 => [internal] load local bake definitions                                                                         0.0s
 => => reading from stdin 534B                                                                                     0.0s
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 835B                                                                               0.0s
 => [internal] load metadata for docker.io/library/debian:bookworm-slim                                            0.7s
 => [internal] load metadata for docker.io/library/dart:stable                                                     0.7s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 93B                                                                                   0.0s
 => [internal] load build context                                                                                  0.0s
 => => transferring context: 2.76kB                                                                                0.0s
 => [build 1/6] FROM docker.io/library/dart:stable@sha256:13140e26d84f4fda57cea31942222112aeb2eec10e5e6874c1c0f70  0.0s
 => => resolve docker.io/library/dart:stable@sha256:13140e26d84f4fda57cea31942222112aeb2eec10e5e6874c1c0f70beed18  0.0s
 => [runtime 1/8] FROM docker.io/library/debian:bookworm-slim@sha256:7b140f374b289a7c2befc338f42ebe6441b7ea838a04  0.0s
 => => resolve docker.io/library/debian:bookworm-slim@sha256:7b140f374b289a7c2befc338f42ebe6441b7ea838a042bbd5acb  0.0s
 => CACHED [runtime 2/8] RUN apt-get update     && apt-get install -y --no-install-recommends ca-certificates      0.0s
 => CACHED [runtime 3/8] WORKDIR /app                                                                              0.0s
 => CACHED [build 2/6] WORKDIR /app                                                                                0.0s
 => CACHED [build 3/6] COPY pubspec.* ./                                                                           0.0s
 => CACHED [build 4/6] RUN dart pub get                                                                            0.0s
 => CACHED [build 5/6] COPY . .                                                                                    0.0s
 => ERROR [build 6/6] RUN dart compile exe bin/server.dart -o build/server     && dart compile exe bin/migrate.da  4.3s
------                                                                                                                  
 > [build 6/6] RUN dart compile exe bin/server.dart -o build/server     && dart compile exe bin/migrate.dart -o build/migrate:                                                                                                                  
4.278 Error: AOT compilation failed
4.278 PathNotFoundException: Cannot open file, path = '/app/build/server' (OS Error: No such file or directory, errno = 2)
------
[+] up 0/1
 ⠙ Image server-api Building                                                                                        5.3s
Dockerfile:9

--------------------

   8 |     COPY . .

   9 | >>> RUN dart compile exe bin/server.dart -o build/server \

  10 | >>>     && dart compile exe bin/migrate.dart -o build/migrate

  11 |     

--------------------

failed to solve: process "/bin/sh -c dart compile exe bin/server.dart -o build/server     && dart compile exe bin/migrate.dart -o build/migrate" did not complete successfully: exit code: 254