Updated Dockerfiles and implemented API endpoint
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user