vite icon indicating copy to clipboard operation
vite copied to clipboard

docker: Error when building a docker container (virtual:mf-REMOTE_ENTRY_ID)

Open ohmygodismax opened this issue 11 months ago • 4 comments

When building the application through the dockerfile, I get an error:

Image

It is likely that the environment of the docker image affects the operation, since such an error does not occur when building locally using similar commands.

Below is the docker file itself: FROM node:20-alpine AS build

WORKDIR /

COPY package.json package-lock.json tsconfig.json tsconfig.app.json tsconfig.node.json vite.config.ts index.html ./ COPY .npmrc ./

RUN npm ci

COPY ./src ./src COPY ./public ./public

RUN npm run build --omit=dev

FROM nginx:alpine-slim

COPY --from=build /dist /var/www/ COPY ./k8s/config/nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]

ohmygodismax avatar Jan 27 '25 06:01 ohmygodismax

thanks @ohmygodismax for your report. I need to investigate but at the moment I have limited time. Can you find that file inside the docker file system?

gioboa avatar Jan 27 '25 09:01 gioboa

@gioboa yes, the file is present in the docker file system, but with a more complete name: Image

Show the contents of the file?

ohmygodismax avatar Jan 27 '25 10:01 ohmygodismax

No, that's ok. Thanks. I need to reproduce and investigate it.

gioboa avatar Jan 27 '25 10:01 gioboa

@gioboa Hi! No news? Had to go back to originjs plugin for now...

ohmygodismax avatar Apr 03 '25 11:04 ohmygodismax

I am getting the same issue on windows

Image

amitpatil321 avatar Jun 03 '25 12:06 amitpatil321

Is there a fix for this?

terrance456 avatar Sep 09 '25 07:09 terrance456

As there's been no activity for 30 days, this issue has been flagged as stale. If you'd like it to remain open, please add a comment within the next 7 days. Thank you.

github-actions[bot] avatar Oct 29 '25 14:10 github-actions[bot]