Dev local #2
2 changed files with 13 additions and 0 deletions
|
|
@ -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
5
docker-compose.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
services:
|
||||
backend:
|
||||
build: .
|
||||
container_name: backend-service
|
||||
restart: always
|
||||
Loading…
Add table
Reference in a new issue