feat: initial commit at project root

This commit is contained in:
Hamza-Ayed
2026-05-29 01:06:47 +03:00
commit 87ec54bbd7
22 changed files with 1737 additions and 0 deletions

30
Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
# Stage 1: Build & install production dependencies
FROM node:20-alpine AS builder
WORKDIR /app
# Copy dependency configs
COPY package.json ./
# Install only production dependencies
RUN npm install --only=production
# Stage 2: Final runtime container
FROM node:20-alpine
WORKDIR /app
# Copy built node_modules
COPY --from=builder /app/node_modules ./node_modules
COPY package.json ./
COPY cmd/ ./cmd/
COPY internal/ ./internal/
# Use the built-in non-root user 'node' (UID 1000)
USER node
# Expose backend service port
EXPOSE 47880
# Execute server
CMD ["node", "cmd/server/main.js"]