Python backend for a Slack's kudos plugin.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

wip: dockerfile

seik 08469369 727decc5

+29 -7
+8 -5
Dockerfile
··· 1 - FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9 1 + FROM python:3.10-slim-buster 2 + 3 + RUN apt-get update 2 4 3 5 RUN pip install poetry 4 - 5 6 COPY ./pyproject.toml /pyproject.toml 6 - 7 7 COPY ./poetry.lock /poetry.lock 8 - 9 8 RUN poetry config virtualenvs.create false && poetry install -n --no-ansi --no-dev 10 - 11 9 RUN rm -rf /pyproject.toml && rm -rf /poetry.lock 12 10 13 11 COPY ./app /app 12 + WORKDIR /app/ 13 + 14 + EXPOSE 8000 15 + 16 + ENTRYPOINT [ "gunicorn", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000", "main:app" ]
-1
app/main.py
··· 9 9 client = WebClient() 10 10 api_response = client.api_test() 11 11 return {"data": api_response.data} 12 -
+20 -1
poetry.lock
··· 124 124 docs = ["sphinx"] 125 125 126 126 [[package]] 127 + name = "gunicorn" 128 + version = "20.1.0" 129 + description = "WSGI HTTP Server for UNIX" 130 + category = "main" 131 + optional = false 132 + python-versions = ">=3.5" 133 + 134 + [package.extras] 135 + eventlet = ["eventlet (>=0.24.1)"] 136 + gevent = ["gevent (>=1.4.0)"] 137 + setproctitle = ["setproctitle"] 138 + tornado = ["tornado (>=0.2)"] 139 + 140 + [[package]] 127 141 name = "h11" 128 142 version = "0.12.0" 129 143 description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" ··· 422 436 [metadata] 423 437 lock-version = "1.1" 424 438 python-versions = ">=3.9,<4.0.0" 425 - content-hash = "4c933c9fce0f7feb8867ff7d0a0f48ab296b0a50fc6848dde6414bc70ed9b1e9" 439 + content-hash = "7b9668be440f1c7dd029ea1e0f2fc0c04c9167f470b58f6c029408dd9617c6f0" 426 440 427 441 [metadata.files] 428 442 anyio = [ ··· 451 465 ] 452 466 colorama = [ 453 467 {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, 468 + {file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"}, 454 469 ] 455 470 fastapi = [ 456 471 {file = "fastapi-0.70.0-py3-none-any.whl", hash = "sha256:a36d5f2fad931aa3575c07a3472c784e81f3e664e3bb5c8b9c88d0ec1104f59c"}, ··· 507 522 {file = "greenlet-1.1.2-cp39-cp39-win32.whl", hash = "sha256:f70a9e237bb792c7cc7e44c531fd48f5897961701cdaa06cf22fc14965c496cf"}, 508 523 {file = "greenlet-1.1.2-cp39-cp39-win_amd64.whl", hash = "sha256:013d61294b6cd8fe3242932c1c5e36e5d1db2c8afb58606c5a67efce62c1f5fd"}, 509 524 {file = "greenlet-1.1.2.tar.gz", hash = "sha256:e30f5ea4ae2346e62cedde8794a56858a67b878dd79f7df76a0767e356b1744a"}, 525 + ] 526 + gunicorn = [ 527 + {file = "gunicorn-20.1.0-py3-none-any.whl", hash = "sha256:9dcc4547dbb1cb284accfb15ab5667a0e5d1881cc443e0677b4882a4067a807e"}, 528 + {file = "gunicorn-20.1.0.tar.gz", hash = "sha256:e0a968b5ba15f8a328fdfd7ab1fcb5af4470c28aaf7e55df02a99bc13138e6e8"}, 510 529 ] 511 530 h11 = [ 512 531 {file = "h11-0.12.0-py3-none-any.whl", hash = "sha256:36a3cb8c0a032f56e2da7084577878a035d3b61d104230d4bd49c0c6b555a9c6"},
+1
pyproject.toml
··· 10 10 sqlmodel = "^0.0.4" 11 11 uvicorn = "^0.15.0" 12 12 slack-sdk = "^3.11.2" 13 + gunicorn = "^20.1.0" 13 14 14 15 [tool.poetry.dev-dependencies] 15 16 black = "^21.10b0"