CI / changes (push) Successful in 7s
CI / openapi (push) Has been skipped
CI / go (push) Successful in 1m29s
CI / docker-web (push) Failing after 15s
CI / docker-bird (push) Failing after 14s
CI / bird2 (push) Successful in 14s
CI / docker-go (push) Failing after 14s
Enhanced the CI workflow by adding support for docker-bake.hcl to streamline the building and pushing of Go images. Updated Go version to 1.24 and introduced caching for Go module dependencies. Refactored Dockerfiles for evobgp-agent, evobgp-web, and gobinary to utilize build stages more effectively, improving caching and build performance. Adjusted installation commands and entry points for better clarity and maintainability.
19 lines
679 B
Docker
19 lines
679 B
Docker
# syntax=docker/dockerfile:1.7
|
|
# Статическая панель EvoBGP (SvelteKit) + nginx.
|
|
FROM public.ecr.aws/docker/library/node:22-alpine AS deps
|
|
WORKDIR /web
|
|
COPY web/package.json web/package-lock.json ./
|
|
RUN --mount=type=cache,target=/root/.npm,sharing=locked \
|
|
npm ci
|
|
|
|
FROM deps AS build
|
|
COPY web/ ./
|
|
RUN npm run build
|
|
|
|
FROM public.ecr.aws/docker/library/nginx:1.27-alpine
|
|
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=build /web/build /usr/share/nginx/html
|