Skip to content

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

Open
@ohmygodismax

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions