Refactor for long callbacks on data collection

This commit is contained in:
2022-06-03 11:41:23 -05:00
parent 6577fe4396
commit 6c703f616e
5 changed files with 155 additions and 10 deletions

View File

@@ -2,10 +2,16 @@ FROM python:3.10
RUN apt update && apt install libpq-dev
COPY . .
COPY pyproject.toml pyproject.toml
COPY poetry.lock poetry.lock
RUN python -m pip install poetry && \
poetry config virtualenvs.create false && \
poetry install
CMD ./serve.sh
COPY wordlinator/ wordlinator/
EXPOSE 8050
CMD gunicorn --workers 8 -b "0.0.0.0:8050" "wordlinator.web:server"