setup features

This commit is contained in:
2026-01-29 00:24:10 -05:00
parent 787c97a52f
commit 4a6e2c307c
34 changed files with 2891 additions and 71 deletions

30
Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
# Stage 1: Build Frontend
FROM node:18-alpine AS frontend-builder
WORKDIR /app/frontend
COPY frontend/package*.json ./
RUN npm install
COPY frontend/ ./
RUN npm run build
# Stage 2: Setup Backend
FROM node:18-alpine
WORKDIR /app
# Copy backend files
COPY backend/package*.json ./
RUN npm install --production
COPY backend/ ./
# Copy built frontend
COPY --from=frontend-builder /app/frontend/dist ./frontend/dist
# Expose port
EXPOSE 80
ENV PORT=80
# Start the server
CMD ["node", "src/index.js"]