Containerization for KolibriOS server infrastructure

This commit is contained in:
Burer
2026-05-17 14:55:45 +03:00
parent c5f68b5800
commit 37fe6de837
5 changed files with 27 additions and 7 deletions
-6
View File
@@ -15,9 +15,3 @@ htmlcov/
# Docs
docs/_build/
# Our's
Dockerfile
.env
./static/*.css
./static/*.css.map
+13
View File
@@ -0,0 +1,13 @@
FROM python:3.13-alpine
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN pip install --no-cache-dir beautifulsoup4 requests
COPY app.py /app/app.py
EXPOSE 8888
CMD ["python", "/app/app.py", "--host", "0.0.0.0", "--port", "8888"]
-1
View File
@@ -32,7 +32,6 @@ UA_POOL = [
]
RETRYABLE_CODES = {429, 500, 502, 503, 504}
SAFE_ECHO = {
b"Content-Type",
b"Cache-Control",
b"Expires",
b"Last-Modified",
View File
+14
View File
@@ -0,0 +1,14 @@
services:
proxy:
build: ./app
container_name: proxy
restart: unless-stopped
cpus: 0.25
mem_limit: 128m
pids_limit: 64
networks:
- caddy
networks:
caddy:
external: true