Commit ae9c6374 authored by TheTechRobo's avatar TheTechRobo
Browse files

Switch Dockerfile to hypercorn + quart

parent 6d24d220
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
FROM python:3.11-slim-bullseye
RUN pip install --no-cache-dir gunicorn flask[async]
RUN pip install --no-cache-dir hypercorn quart
RUN apt install -y openssl
RUN apt clean
# The following line does not necessarily have to be updated with the requirements.txt as this is just to speed up the requirements.txt part (to improve cachability)
@@ -9,4 +9,4 @@ EXPOSE 8000
COPY . /app
WORKDIR /app
RUN pip install --upgrade -r REQUIREMENTS.txt
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8000", "--config", "gunicorn.conf", "app:app"]
ENTRYPOINT ["hypercorn", "-b", "0.0.0.0:8000", "--config", "file:hypercorn_conf.py", "app:app"]
+1 −0
Original line number Diff line number Diff line
snscrape==0.4.3.20220106
quart
aiohttp[speedups]
requests
switch
+0 −0

File moved.