mirror of
https://github.com/NVIDIA/dgx-spark-playbooks.git
synced 2026-04-23 10:33:51 +00:00
LitServe-based prompt injection detection server with a React monitoring dashboard. Serves HuggingFace classification models behind an OpenAI-compatible API with real-time metrics and GPU acceleration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
297 B
XML
13 lines
297 B
XML
FROM node:20-slim AS build
|
|
WORKDIR /app
|
|
COPY ui/package.json ui/package-lock.json* ./
|
|
RUN npm install
|
|
COPY ui/ ./
|
|
ENV VITE_API_URL=http://localhost:8234
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|