add test-cicd code

This commit is contained in:
2026-04-17 09:15:51 +07:00
parent 9d425fd427
commit ac40b54884
5 changed files with 142 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# Build stage
FROM node:18-slim AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
# Production stage
FROM node:18-slim
WORKDIR /app
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/index.js ./
EXPOSE 3000
CMD ["node", "index.js"]