Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ohmygodismax opened this issue Jan 27, 2025 · 3 comments

Comments

@ohmygodismax
Copy link

ohmygodismax commented Jan 27, 2025

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;"]

@gioboa
Copy link
Collaborator

gioboa commented Jan 27, 2025

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 gioboa changed the title Error when building a docker container (virtual:mf-REMOTE_ENTRY_ID) docker: Error when building a docker container (virtual:mf-REMOTE_ENTRY_ID) Jan 27, 2025
@ohmygodismax
Copy link
Author

ohmygodismax commented Jan 27, 2025

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

Show the contents of the file?

@gioboa
Copy link
Collaborator

gioboa commented Jan 27, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants