add: API server(#422)

Add an example of api server so that devs can quickly get up a bot running along with its api
This commit is contained in:
Sahil Kumar Yadav
2023-08-11 11:30:51 +05:30
committed by GitHub
parent d51c508b40
commit a86deb2675
9 changed files with 132 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
FROM python:3.11 AS backend
WORKDIR /usr/src/api
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
EXPOSE 5000
CMD ["python", "api_server.py"]