Updated Dockerfiles and implemented API endpoint

This commit is contained in:
Discord Bot
2023-03-08 19:35:38 +00:00
parent d5e009714e
commit 737756be47
15 changed files with 103 additions and 25 deletions

View File

@@ -1,11 +0,0 @@
FROM python:3.10
WORKDIR /app
COPY requirements.txt .
RUN pip3 install -r requirements.txt
COPY code /app
ENTRYPOINT [ "python", "wingl.py" ]

View File

@@ -0,0 +1,13 @@
FROM python:3.10-slim
WORKDIR /app
COPY requirements_api.txt .
RUN pip3 install -r requirements_api.txt
COPY code /app
ENTRYPOINT ["gunicorn", "api:app", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000"]
EXPOSE 8000

View File

@@ -0,0 +1,11 @@
FROM python:3.10-slim
WORKDIR /app
COPY requirements_bot.txt .
RUN pip3 install -r requirements_bot.txt
COPY code /app
ENTRYPOINT [ "python", "bot.py" ]