dockerfile added

This commit is contained in:
Utsho Dey 2024-12-18 17:39:00 +06:00
parent 56335cbfa7
commit a1a699f9b3
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,8 @@
FROM python:3.12
COPY requirements.txt requirements.txt
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
COPY . .
EXPOSE 8000
ENTRYPOINT ["gunicorn", "main:app", "--workers", "4", "--timeout", "90", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000"]

5
docker-compose.yaml Normal file
View file

@ -0,0 +1,5 @@
services:
backend:
build: .
container_name: backend-service
restart: always