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

@@ -1,10 +1,13 @@
FROM ubuntu:25.04
RUN apt-get update && apt-get install socat libpqxx-dev libsodium-dev lsb-release python3 -yqq \
RUN apt-get update && apt-get install socat libpqxx-dev libsodium-dev lsb-release python3 python3-pip python3-venv -yqq \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip3 install --no-cache-dir aiosqlite requests --break-system-packages
COPY --chmod=755 ./server.sh /home/
COPY --chmod=755 ./security_service.py /home/
COPY --chmod=755 ./security_service_async.py /home/
COPY ./[^scD]* .
ENTRYPOINT /home/server.sh

View File

@@ -1,3 +1,3 @@
#!/bin/bash
socat TCP-LISTEN:1224,reuseaddr,fork SYSTEM:"timeout -s SIGKILL 60 python3 -u /home/security_service.py"
socat TCP-LISTEN:1224,reuseaddr,fork SYSTEM:"timeout -s SIGKILL 60 python3 -u /home/security_service_async.py"