Initial import of LWLT AIBOT platform
This commit is contained in:
commit
208c434b31
2178 files changed
+382042
No files matched your search
+26
@@ -0,0 +1,26 @@
|
||||
FROM node:22-bookworm-slim AS build
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci --no-audit --no-fund
|
||||
COPY tsconfig.json ./
|
||||
COPY control-plane ./control-plane
|
||||
COPY LianSyn-platform ./LianSyn-platform
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-bookworm-slim AS runtime
|
||||
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /app
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends -y libreoffice-writer fonts-noto-cjk \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY package*.json ./
|
||||
RUN npm ci --omit=dev --no-audit --no-fund
|
||||
COPY --from=build /app/.build ./.build
|
||||
COPY --from=build /app/control-plane/migrations ./.build/control-plane/migrations
|
||||
COPY --from=build /app/LianSyn-platform ./LianSyn-platform
|
||||
|
||||
USER node
|
||||
EXPOSE 8786
|
||||
CMD ["node", ".build/control-plane/src/server.js"]
|
||||
Reference in new issue
Block a user