Skip to content

ERROR: failed to solve: process "/bin/sh -c yarn build:app:docker" did not complete successfully: exit code: 1 #7582

Open

Description

[root@VM-4-8-centos excalidraw-0.17.0]# docker build -f Dockerfile -t xxxxxx.com(马赛克)/excalidraw:0.17.0 .
[+] Building 2.5s (12/13)                                                                                                                                    docker:default
 => [internal] load build definition from Dockerfile                                                                                                                   0.0s
 => => transferring dockerfile: 379B                                                                                                                                   0.0s
 => [internal] load .dockerignore                                                                                                                                      0.0s
 => => transferring context: 171B                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/node:18                                                                                                             1.4s
 => [internal] load metadata for docker.io/library/nginx:1.21-alpine                                                                                                   1.4s
 => [build 1/6] FROM docker.io/library/node:18@sha256:995a5f4314885452a4a785abc25a0fec40e26c346559e11e709d58bb7a927cf4                                                 0.0s
 => CACHED [stage-1 1/2] FROM docker.io/library/nginx:1.21-alpine@sha256:a74534e76ee1121d418fa7394ca930eb67440deda413848bc67c68138535b989                              0.0s
 => [internal] load build context                                                                                                                                      0.0s
 => => transferring context: 28.15kB                                                                                                                                   0.0s
 => CACHED [build 2/6] WORKDIR /opt/node_app                                                                                                                           0.0s
 => CACHED [build 3/6] COPY package.json yarn.lock ./                                                                                                                  0.0s
 => CACHED [build 4/6] RUN yarn --ignore-optional --network-timeout 600000                                                                                             0.0s
 => CACHED [build 5/6] COPY . .                                                                                                                                        0.0s
 => ERROR [build 6/6] RUN yarn build:app:docker                                                                                                                        0.9s
------
 > [build 6/6] RUN yarn build:app:docker:
0.431 yarn run v1.22.19
0.480 $ cross-env VITE_APP_DISABLE_SENTRY=true VITE_APP_DISABLE_TRACKING=true vite build
0.821 vite v4.4.2 building for production...
0.845 Could not resolve entry module "index.html".
0.848 error during build:
0.848 RollupError: Could not resolve entry module "index.html".
0.848     at error (file:///opt/node_app/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:2245:30)
0.848     at ModuleLoader.loadEntryModule (file:///opt/node_app/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:24671:20)
0.848     at async Promise.all (index 0)
0.848 ✓ 0 modules transformed.
0.848 ✓ built in 20ms
0.871 error Command failed with exit code 1.
0.872 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
Dockerfile:11
--------------------
   9 |
  10 |     COPY . .
  11 | >>> RUN yarn build:app:docker
  12 |
  13 |     FROM nginx:1.21-alpine
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn build:app:docker" did not complete successfully: exit code: 1

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions