mirror of
https://github.com/Runnin4ik/dpi-detector.git
synced 2026-09-10 18:19:05 +00:00
29 lines
878 B
Text
29 lines
878 B
Text
FROM python:3.14-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN apk add --no-cache ttyd \
|
|
&& apk add --no-cache --virtual .build-deps build-base yaml-dev \
|
|
&& pip install --no-cache-dir -r requirements.txt \
|
|
&& apk del .build-deps \
|
|
&& adduser -D -u 1000 app
|
|
|
|
COPY app/ ./app/
|
|
COPY cli/ ./cli/
|
|
COPY core/ ./core/
|
|
COPY utils/ ./utils/
|
|
COPY dpi_detector.py .
|
|
COPY domains.txt .
|
|
COPY tcp16.json .
|
|
COPY config.yml .
|
|
COPY whitelist_sni.txt .
|
|
RUN chown -R app:app /app
|
|
|
|
EXPOSE 7681
|
|
|
|
USER app
|
|
|
|
# Интерактивный Web-терминал через ttyd: запускает dpi_detector без root и без shell-прослойки
|
|
ENTRYPOINT ["ttyd", "-p", "7681", "-W", "-t", "fontSize=16", "-t", "theme={\"background\":\"#181825\",\"foreground\":\"#cdd6f4\",\"cursor\":\"#f5e0dc\"}", "-t", "titleFixed=DPI Detector Web"]
|
|
CMD ["python", "dpi_detector.py"]
|