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:
committed by
GitHub
parent
d51c508b40
commit
a86deb2675
11
examples/api_server/Dockerfile
Normal file
11
examples/api_server/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user