create license management

This commit is contained in:
2026-04-06 13:31:30 +03:30
parent 44097fe1ac
commit de1a046485
46 changed files with 819 additions and 366 deletions
+5 -19
View File
@@ -1,38 +1,24 @@
# Build stage
FROM node:20-alpine AS builder
FROM node:20 AS builder
WORKDIR /app
# Install pnpm
RUN npm config set registry "https://hub.megan.ir/npm/"
RUN npm install -g pnpm
# Copy package files
COPY package.json pnpm-lock.yaml ./
RUN pnpm install
# Install dependencies
RUN pnpm install --frozen-lockfile
# Copy source code
COPY . .
# Build the application for production
RUN pnpm run build
# Production stage - serve with nginx
FROM nginx:alpine
# Copy nginx configuration
COPY nginx.conf /etc/nginx/nginx.conf
# Copy built application from builder stage
COPY --from=builder /app/dist/pos.client/browser /usr/share/nginx/html
# Expose port
EXPOSE 80
EXPOSE 4001
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --quiet --tries=1 --spider http://localhost:80/ || exit 1
# Start nginx
CMD ["nginx", "-g", "daemon off;"]