This is an automated email from the ASF dual-hosted git repository. bzp2010 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push: new 4a71843c2 feat: add apisix dashboard to dev image (#12369) 4a71843c2 is described below commit 4a71843c2786e49ec92748be394b96af3a45de0a Author: Zeping Bai <bzp2...@apache.org> AuthorDate: Tue Jun 24 11:55:55 2025 +0800 feat: add apisix dashboard to dev image (#12369) --- .github/workflows/push-dev-image-on-commit.yml | 21 +++++++++++++++++++++ docker/debian-dev/Dockerfile | 4 +++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-dev-image-on-commit.yml b/.github/workflows/push-dev-image-on-commit.yml index 0a5a46d15..793347b3e 100644 --- a/.github/workflows/push-dev-image-on-commit.yml +++ b/.github/workflows/push-dev-image-on-commit.yml @@ -32,6 +32,27 @@ jobs: - name: Check out the repo uses: actions/checkout@v4 + - name: Build APISIX Dashboard + run: | + # install node.js and pnpm + sudo n lts + corepack enable pnpm + + # prepare apisix-dashboard source code + source .requirements + git clone --revision=${APISIX_DASHBOARD_COMMIT} --depth 1 https://github.com/apache/apisix-dashboard.git + pushd apisix-dashboard + + # compile + pnpm install --frozen-lockfile + pnpm run build + popd + + # copy the dist files to the ui directory + mkdir ui + cp -r apisix-dashboard/dist/* ui/ + rm -r apisix-dashboard + - name: Build and run run: | make build-on-debian-dev diff --git a/docker/debian-dev/Dockerfile b/docker/debian-dev/Dockerfile index e67ceaf7e..5bb16a9f8 100644 --- a/docker/debian-dev/Dockerfile +++ b/docker/debian-dev/Dockerfile @@ -48,11 +48,13 @@ ARG CHECK_STANDALONE_CONFIG=./check_standalone_config.sh # Install the runtime libyaml package RUN apt-get -y update --fix-missing \ && apt-get install -y libldap2-dev libyaml-0-2 \ - && apt-get remove --purge --auto-remove -y + && apt-get remove --purge --auto-remove -y \ + && mkdir -p /usr/local/apisix/ui COPY --from=build /usr/local/apisix /usr/local/apisix COPY --from=build /usr/local/openresty /usr/local/openresty COPY --from=build /usr/bin/apisix /usr/bin/apisix +COPY ./ui/* /usr/local/apisix/ui/ COPY ${INSTALL_BROTLI} /install-brotli.sh RUN chmod +x /install-brotli.sh \