Initial commit
This commit is contained in:
22
Dockerfile
Executable file
22
Dockerfile
Executable 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"]
|
||||
Reference in New Issue
Block a user