CI / changes (push) Successful in 10s
CI / commitlint (push) Has been skipped
CI / openapi (push) Successful in 27s
CI / web (push) Successful in 38s
CI / go (push) Successful in 2m36s
CI / bird2 (push) Successful in 15s
CI / release (push) Failing after 3m7s
Refactored the project structure to support a monorepo setup, moving the web application to `apps/web/` and updating related configurations. Adjusted pre-commit hooks to use `pnpm` for linting and formatting. Updated CI workflows to reflect the new directory structure and dependencies. Removed legacy files and configurations from the previous `web/` directory, streamlining the project for better maintainability and clarity.
26 lines
1.1 KiB
Docker
26 lines
1.1 KiB
Docker
# syntax=docker/dockerfile:1.7
|
|
# Статическая панель EvoBGP (SvelteKit) + nginx.
|
|
# Финальный stage `web` ожидает bake-контекст web-artifacts (= target:web-build).
|
|
FROM public.ecr.aws/docker/library/node:22-alpine AS deps
|
|
WORKDIR /app
|
|
RUN corepack enable && corepack prepare pnpm@10.33.2 --activate
|
|
COPY pnpm-workspace.yaml pnpm-lock.yaml package.json ./
|
|
COPY apps/web/package.json apps/web/
|
|
COPY packages/ui/package.json packages/ui/
|
|
COPY packages/shared/package.json packages/shared/
|
|
RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \
|
|
pnpm install --frozen-lockfile
|
|
|
|
FROM deps AS build
|
|
COPY tsconfig.base.json ./
|
|
COPY packages/ packages/
|
|
COPY apps/web/ apps/web/
|
|
RUN pnpm --filter @evobgp/web build
|
|
|
|
FROM public.ecr.aws/docker/library/nginx:1.27-alpine AS web
|
|
ARG EVOBGP_UPSTREAM=evobgp-api
|
|
COPY deploy/docker/evobgp-web/nginx.conf /tmp/nginx-default.conf
|
|
RUN sed -e "s/evobgp-api/${EVOBGP_UPSTREAM}/g" /tmp/nginx-default.conf > /etc/nginx/conf.d/default.conf \
|
|
&& rm -f /tmp/nginx-default.conf
|
|
COPY --from=web-artifacts /app/apps/web/build /usr/share/nginx/html
|