mirror of
https://github.com/NVIDIA/dgx-spark-playbooks.git
synced 2026-04-25 19:33:53 +00:00
13 lines
297 B
Docker
13 lines
297 B
Docker
|
|
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
|