This commit is contained in:
pwn
2025-12-14 14:51:36 +03:00
parent 9b66143f5a
commit 5e647e068d
5 changed files with 170 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
FROM python:3.12-slim
WORKDIR /app
# Install dependencies
RUN pip install --no-cache-dir aiosqlite requests
# Copy the async service
COPY build/service/security_service_async.py /app/service.py
# Expose port
EXPOSE 1224
# Run with socat for network service
RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/*
CMD socat TCP-LISTEN:1224,reuseaddr,fork SYSTEM:"python3 -u /app/service.py"