mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
19 lines
635 B
Docker
19 lines
635 B
Docker
FROM node:20-alpine AS base
|
|
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate
|
|
WORKDIR /app
|
|
|
|
FROM base AS deps
|
|
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
|
|
COPY apps/edr-freight-web/portal/package.json ./apps/edr-freight-web/portal/
|
|
COPY packages ./packages
|
|
RUN pnpm install --frozen-lockfile --filter @edr/freight-portal...
|
|
|
|
FROM deps AS build
|
|
COPY apps/edr-freight-web/portal ./apps/edr-freight-web/portal
|
|
RUN pnpm --filter @edr/freight-portal build
|
|
|
|
FROM nginx:1.27-alpine AS runtime
|
|
COPY --from=build /app/apps/edr-freight-web/portal/dist /usr/share/nginx/html
|
|
EXPOSE 5173
|
|
CMD ["nginx", "-g", "daemon off;"]
|