60fc377442
Headlamp's plugin discovery requires both main.js and package.json in the plugin directory. The Dockerfile only copied dist/ (main.js), causing the plugin to not be discovered at runtime. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
315 B
Docker
11 lines
315 B
Docker
FROM node:20-alpine AS build
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json* ./
|
|
RUN npm ci --ignore-scripts
|
|
COPY src/ src/
|
|
RUN npx @kinvolk/headlamp-plugin build
|
|
|
|
FROM alpine:3.20
|
|
COPY --from=build /app/dist/ /plugins/polaris-headlamp-plugin/
|
|
COPY --from=build /app/package.json /plugins/polaris-headlamp-plugin/
|