Unverified Commit 44b9d256 authored by TheTechRobo's avatar TheTechRobo Committed by GitHub
Browse files

Update Dockerfile

parent db92298a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
FROM python:3.10-slim-bullseye
RUN pip install --no-cache-dir gunicorn flask[async]
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)
RUN pip install --no-cache-dir snscrape==0.4.3.20220106 aiohttp[speedups] requests switch nest_asyncio cachetools click asyncache pyyaml

EXPOSE 8000
RUN pip install -r REQUIREMENTS.txt
COPY . /app
WORKDIR /app
RUN pip install --upgrade -r REQUIREMENTS.txt
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8000", "--config", "gunicorn.conf", "app:app"]