Добавил докер

This commit is contained in:
urec56 2024-02-11 22:22:47 +03:00
parent d06e153a51
commit d94bfda75f
2 changed files with 23 additions and 0 deletions

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM python:3.11
RUN mkdir /BP
WORKDIR /BP
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
CMD ["gunicorn", "app.main:app", "--workers", "1", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind=0.0.0.0:8000"]

10
docker-compose.yml Normal file
View file

@ -0,0 +1,10 @@
version: '3'
services:
uploader_server:
image: uploader_server
build:
context: .
container_name: uploader_server
ports:
- 127.0.0.1:7777:8000
restart: always