Updated Dockerfiles and implemented API endpoint
This commit is contained in:
@@ -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" ]
|
||||
13
Dockerfiles/api/Dockerfile
Normal file
13
Dockerfiles/api/Dockerfile
Normal 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
|
||||
11
Dockerfiles/bot/Dockerfile
Normal file
11
Dockerfiles/bot/Dockerfile
Normal 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" ]
|
||||
Reference in New Issue
Block a user