new radius server

This commit is contained in:
2025-04-01 17:43:52 -04:00
parent 9d4b21b5ae
commit 1482643261
13 changed files with 174 additions and 10 deletions

22
radius/Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Install runtime dependencies (for mysql-connector and networking tools)
RUN apt-get update && \
apt-get install -y gcc libmariadb-dev iputils-ping && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy RADIUS service source code
COPY . .
# Expose RADIUS port (UDP)
EXPOSE 1812/udp
# Run the RADIUS service
CMD ["python", "main.py"]