cannot find public/assets/.vite duting build #5000
Unanswered
NhidheesKB
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
FROM node:22-alpine AS build
WORKDIR /build
COPY package.json ./
RUN npm install
COPY . .
ENV HOST=0.0.0.0
ENV NODE_ENV=production
RUN npm run build
FROM node:22-alpine AS production
WORKDIR /www
COPY package.json ./
RUN npm install
COPY --from=build /build/build /www/build
COPY cred /www/cred
RUN chmod -R 777 /www/cred
ENV HOST=0.0.0.0
ENV NODE_ENV=production
EXPOSE 3333
CMD ["node", "./build/bin/server.js"]
i got the error
{"level":30,"time":1758939358219,"pid":1,"hostname":"5c2bfc0a5042","msg":"started HTTP server on 0.0.0.0:3333"}
{"level":50,"time":1758939364609,"pid":1,"hostname":"5c2bfc0a5042","request_id":"xsanac2p2er41s4lrtg3w5r1","err":{"type":"EdgeError","message":"ENOENT: no such file or directory, open 'public/assets/.vite/manifest.json'","stack":"Error: ENOENT: no such file or directory, open 'public/assets/.vite/manifest.json'\n at anonymous (/www/build/resources/views/inertia_layout.edge:9:0)\n at Template.reThrow (file:///www/node_modules/edge.js/build/chunk-EKKK4GME.js:625:11)\n at eval (eval at #wrapToFunction (file:///www/node_modules/edge.js/build/index.js:1298:14), :60:10)","line":9,"col":0,"filename":"/www/build/resources/views/inertia_layout.edge","code":"E_RUNTIME_EXCEPTION","status":500},"x-request-id":"xsanac2p2er41s4lrtg3w5r1","msg":"ENOENT: no such file or directory, open 'public/assets/.vite/manifest.json'"}
there is no .vite folder in my container but when i make build in my local i saw that file
Beta Was this translation helpful? Give feedback.
All reactions