VITE BUILD no found in dockerfile #17412
Unanswered
VigilioYonatan
asked this question in
Q&A
Replies: 1 comment
-
This looks like the build is for production. If using NODE_ENV make sure it is development. Vite is usually installed as a dev dependency and these are not installed in when NODE_ENV=production. Build will fail with "not found" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
VITE BUILD no found in dockerfile, but it found in normal windows 10 docker. in windows 10 is ok byut in dockerfile command to create image show error.
resolved at runtime
#15 29.22
#15 29.22 /fonts/Exo-Thin.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/Exo-Light.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/Exo-Regular.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/Exo-Bold.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/Exo-Black.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-brands-400.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-regular-400.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-solid-900.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-duotone-900.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-sharp-regular-400.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-sharp-solid-900.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 35.47 ✓ 2579 modules transformed.
#15 35.47 x Build failed in 12.21s
#15 35.47 error during build:
#15 35.47 node_modules/.pnpm/@[email protected][email protected][email protected]_/node_modules/@hookform/resolvers/valibot/dist/valibot.mjs (1:125): "getDotPath" is not exported by "node_modules/.pnpm/[email protected]/node_modules/valibot/dist/index.js", imported by "node_modules/.pnpm/@[email protected][email protected][email protected]_/node_modules/@hookform/resolvers/valibot/dist/valibot.mjs".
#15 35.47 file: /usr/src/app/node_modules/.pnpm/@[email protected][email protected][email protected]_/node_modules/@hookform/resolvers/valibot/dist/valibot.mjs:1:125
#15 35.47
#15 35.47 1: import{toNestErrors as r}from"@hookform/resolvers";import{appendErrors as e}from"react-hook-form";import{safeParseAsync as t,getDotPath...
#15 35.47 ^
#15 35.47 2: //# sourceMappingURL=valibot.module.js.map
#15 35.47
#15 35.47 at getRollupError (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:396:41)
#15 35.47 at error (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:392:42)
#15 35.47 at Module.error (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:13858:16)
#15 35.47 at Module.traceVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:14306:29)
#15 35.47 at ModuleScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:11984:39)
#15 35.47 at ChildScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionBodyScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at ChildScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionBodyScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at BlockScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at ChildScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionBodyScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at TrackingScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at BlockScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at BlockScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at BlockScope.findVariable (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at Identifier.bind (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:6908:40)
#15 35.47 at CallExpression.bind (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
#15 35.47 at CallExpression.bind (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:9135:15)
#15 35.47 at VariableDeclarator.bind (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
#15 35.47 at VariableDeclaration.bind (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
#15 35.47 at BlockStatement.bind (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
#15 35.47 at ForStatement.bind (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
#15 35.47 at BlockStatement.bind (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
#15 35.47 at IfStatement.bind (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
#15 35.47 at BlockStatement.bind (file:///usr/src/app/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js
#15 35.47 ... and 21 lines more
#15 35.52 ELIFECYCLE Command failed with exit code 1.
#15 ERROR: process "/bin/sh -c pnpm build:serve && pnpm build:dev && pnpm prune --prod" did not complete successfully: exit code: 1
Dockerfile:62
60 | COPY --from=dependencies /usr/src/app/node_modules ./node_modules
61 | COPY . .
62 | >>> RUN pnpm build:serve && pnpm build:dev && pnpm prune --prod
63 |
64 | FROM base AS production
ERROR: failed to solve: process "/bin/sh -c pnpm build:serve && pnpm build:dev && pnpm prune --prod" did not complete successfully: exit code: 1
Reproduction
x
Steps to reproduce
No response
System Info
Used Package Manager
pnpm
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions