mirror of
https://github.com/mblanke/ThreatHunt.git
synced 2026-03-01 05:50:21 -05:00
- Implemented PlaybookManager for creating and managing investigation playbooks with templates. - Added SavedSearches component for managing bookmarked queries and recurring scans. - Introduced TimelineView for visualizing forensic event timelines with zoomable charts. - Enhanced backend processing with auto-queued jobs for dataset uploads and improved database concurrency. - Updated frontend components for better user experience and performance optimizations. - Documented changes in update log for future reference.
37 lines
831 B
Docker
37 lines
831 B
Docker
# ThreatHunt Frontend - Node.js React
|
|
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY frontend/package.json frontend/package-lock.json* ./
|
|
|
|
# Install dependencies
|
|
RUN npm ci
|
|
|
|
# Copy source
|
|
COPY frontend/public ./public
|
|
COPY frontend/src ./src
|
|
COPY frontend/tsconfig.json ./
|
|
|
|
# Build application
|
|
RUN npm run build
|
|
|
|
# Production stage — nginx reverse-proxy + static files
|
|
FROM nginx:alpine
|
|
|
|
# Copy built React app
|
|
COPY --from=builder /app/build /usr/share/nginx/html
|
|
|
|
# Copy custom nginx config (proxies /api to backend)
|
|
COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Expose port
|
|
EXPOSE 3000
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
CMD wget --quiet --tries=1 --spider http://localhost:3000/ || exit 1
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|