init commit
This commit is contained in:
19
ctrl/Dockerfile.ui
Normal file
19
ctrl/Dockerfile.ui
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:22-slim AS build
|
||||
|
||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||
|
||||
WORKDIR /ui
|
||||
COPY ui/framework/ framework/
|
||||
COPY ui/app/ app/
|
||||
|
||||
ENV CI=true
|
||||
|
||||
WORKDIR /ui/framework
|
||||
RUN pnpm install
|
||||
|
||||
WORKDIR /ui/app
|
||||
RUN pnpm install && pnpm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=build /ui/app/dist /usr/share/nginx/html
|
||||
COPY ctrl/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
Reference in New Issue
Block a user