From 2fec790148414ab0fdb24f5ecfe9e9c79fde62a1 Mon Sep 17 00:00:00 2001 From: Shijun Sun <30999793+AllForNothing@users.noreply.github.com> Date: Tue, 9 May 2023 09:27:03 +0800 Subject: [PATCH] Copy swagger.json to the dist folder (#18646) Signed-off-by: AllForNothing --- make/photon/portal/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/make/photon/portal/Dockerfile b/make/photon/portal/Dockerfile index 314880bb6..e0540cbef 100644 --- a/make/photon/portal/Dockerfile +++ b/make/photon/portal/Dockerfile @@ -24,6 +24,7 @@ RUN cd app-swagger-ui && npm run build FROM ${harbor_base_namespace}/harbor-portal-base:${harbor_base_image_version} COPY --from=nodeportal /build_dir/dist /usr/share/nginx/html +COPY --from=nodeportal /build_dir/swagger.json /usr/share/nginx/html COPY --from=nodeportal /build_dir/app-swagger-ui/dist /usr/share/nginx/html VOLUME /var/cache/nginx /var/log/nginx /run