Files
rss-proxy/Dockerfile
2025-03-03 16:58:57 +00:00

23 lines
540 B
Docker
Executable File

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/ /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", "app.__init__:proxy_app"]