Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cmd/kueueviz/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ FROM node:25-slim AS runtime
WORKDIR /app

# Install serve for production static file serving
RUN npm install -g serve
RUN mkdir -p /usr/local/node_packages/
COPY ./node_packages/package.json /usr/local/node_packages/
COPY ./node_packages/package-lock.json /usr/local/node_packages/
WORKDIR /usr/local/node_packages/
RUN npm install
ENV PATH="/usr/local/node_packages/node_modules/.bin:${PATH}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can add it on scripts and run it like npm run serve.

WORKDIR /app

# Copy only the built files from builder
COPY --from=builder /app/build ./build
Expand Down
Loading