feat: k8s operator

This commit is contained in:
2025-05-12 12:34:09 +07:00
parent cffe651d6f
commit 952928ffcb
19 changed files with 2486 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
FROM node:18-alpine AS build
WORKDIR /app
# Copy package files
COPY package.json ./
COPY tsconfig.json ./
# Copy source files
COPY src/ ./src/
# Install dependencies
RUN npm install
# Build
RUN npm run build
# Create production image
FROM node:18-alpine
WORKDIR /app
# Copy package.json and built files
COPY --from=build /app/package.json ./
COPY --from=build /app/dist ./dist
# Install production dependencies
RUN npm install --production
# Set environment variables
ENV NODE_ENV=production
# Run
CMD ["node", "dist/index.js"]