Initial commit

This commit is contained in:
2025-03-03 01:16:50 +03:00
parent be888d68b2
commit 2bef3a7fe4
11 changed files with 175 additions and 0 deletions

22
Dockerfile Executable file
View File

@@ -0,0 +1,22 @@
FROM python:3.11-alpine AS base
WORKDIR /app
FROM base AS builder
COPY requirements.txt /app
RUN pip wheel --no-cache-dir -q \
--no-deps --wheel-dir /app/wheels \
-r requirements.txt
FROM base AS runner
COPY --from=builder /app/wheels /wheels
RUN pip install --no-cache-dir -q /wheels/*
COPY proxy/rss_proxy.py healthcheck.py /app/
ENV PYTHONUNBUFFERED=1
EXPOSE 5050
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD python3 test.py
CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:5050", "rss_proxy:app"]