Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

chore: remove unused frontend Dockerfile, entrypoint script, and Nginx configuration files

Dmitry Ng445f131430e2
diff --git a/Dockerfile.fe b/Dockerfile.fe
deleted file mode 100644
index 972928b9..00000000
--- a/Dockerfile.fe
+++ /dev/null
@@ -1,72 +0,0 @@
-# syntax=docker/dockerfile:1.4
-
-# ============================================================
-# STEP 1: Build the frontend (Vite → static files)
-# ============================================================
-FROM node:23-slim AS frontend-builder
-
-ENV NODE_ENV=production
-ENV VITE_BUILD_MEMORY_LIMIT=4096
-ENV NODE_OPTIONS="--max-old-space-size=4096"
-
-WORKDIR /app
-
-RUN apt-get update && apt-get install -y \
- ca-certificates \
- tzdata \
- gcc \
- g++ \
- make \
- git \
- && rm -rf /var/lib/apt/lists/*
-
-COPY ./backend/pkg/graph/schema.graphqls ../backend/pkg/graph/
-COPY frontend/ .
-
-# Install dependencies (including devDependencies for the build)
-RUN --mount=type=cache,target=/root/.npm \
- npm ci --include=dev
-
-# Build frontend with optimizations
-RUN npm run build -- \
- --mode production \
- --minify esbuild \
- --outDir dist \
- --emptyOutDir \
- --sourcemap false \
- --target es2020
-
-# ============================================================
-# STEP 2: Production image — Nginx (static SPA)
-# ============================================================
-FROM nginx:stable-alpine
-
-# Copy built frontend static files
-COPY --from=frontend-builder /app/dist /usr/share/nginx/html
-
-# Copy Nginx config
-COPY nginx.fe.conf /etc/nginx/conf.d/default.conf
-
-# Remove default Nginx site config if it exists
-RUN rm -f /etc/nginx/sites-enabled/default
-
-# Copy entrypoint script
-COPY entrypoint.fe.sh /entrypoint.sh
-RUN chmod +x /entrypoint.sh
-
-# ---------------------------------------------------------------------------
-# Runtime environment variables (all optional, shown with defaults)
-# ---------------------------------------------------------------------------
-
-# Nginx
-ENV NGINX_PORT=3000
-
-EXPOSE 3000
-
-ENTRYPOINT ["/entrypoint.sh"]
-
-# Image Metadata
-LABEL org.opencontainers.image.source="https://github.com/vxcontrol/pentagi"
-LABEL org.opencontainers.image.description="PentAGI Frontend — Nginx static SPA server"
-LABEL org.opencontainers.image.authors="PentAGI Development Team"
-LABEL org.opencontainers.image.licenses="MIT License"
diff --git a/entrypoint.fe.sh b/entrypoint.fe.sh
deleted file mode 100644
index a8e8bbc0..00000000
--- a/entrypoint.fe.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-set -e
-
-# ---------------------------------------------------------------------------
-# Configurable environment variables (with defaults)
-# ---------------------------------------------------------------------------
-NGINX_PORT=${NGINX_PORT:-3000}
-
-# ---------------------------------------------------------------------------
-# Patch nginx config with actual port values
-# ---------------------------------------------------------------------------
-sed -i "s/listen 3000;/listen ${NGINX_PORT};/" /etc/nginx/conf.d/default.conf
-
-# ---------------------------------------------------------------------------
-# Start Nginx
-# ---------------------------------------------------------------------------
-echo "Starting Nginx on port ${NGINX_PORT}..."
-exec nginx -g "daemon off;"
diff --git a/nginx.fe.conf b/nginx.fe.conf
deleted file mode 100644
index 99eaf2a2..00000000
--- a/nginx.fe.conf
+++ /dev/null
@@ -1,23 +0,0 @@
-server {
- listen 3000;
- server_name _;
-
- root /usr/share/nginx/html;
- index index.html;
-
- # gzip compression
- gzip on;
- gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
- gzip_min_length 1000;
-
- # Serve static files (SPA fallback)
- location / {
- try_files $uri $uri/ /index.html;
- }
-
- # Cache static assets
- location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
- expires 1y;
- add_header Cache-Control "public, immutable";
- }
-}