add ui docker build
This commit is contained in:
15
ui/Dockerfile
Normal file
15
ui/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM node:24-alpine AS base
|
||||
|
||||
FROM base AS build
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM base AS prod
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/.output ./ui
|
||||
ENV PORT=3000
|
||||
|
||||
ENTRYPOINT [ "node", "/app/ui/server/index.mjs" ]
|
||||
Reference in New Issue
Block a user