Add frontend project structure with React/TypeScript setup

This commit is contained in:
Newzy Developer committed 2026-10-30 10:53:31 +00:00
1 parent c7abb73c66
commit 6914a6855c
58 files changed
+9056 -236

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
# Stage 1: Build stage
FROM node:18-alpine AS builder
WORKDIR /app
COPY package.json .
COPY package-lock.json* . 2>/dev/null || true
RUN npm ci
COPY . .
RUN npm run build
# Stage 2: Production stage with Nginx
FROM nginx:alpine
# Copy custom nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy built files from builder
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]