Copy swagger.json to the dist folder (#18646)

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
Shijun Sun 2023-05-09 09:27:03 +08:00 committed by GitHub
parent 0e3e70bc7a
commit 2fec790148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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