[TC-221]: init template-backend-service (#1)

https://eva.avroid.tech/desk/cards?obj=Task:TC-221

Начальная версия сервиса-шаблона

Co-authored-by: Nadezhda <nadezhda.lavrentieva@avroid.team>
Reviewed-on: https://git.avroid.tech/Templates/template-backend-service/pulls/1
Reviewed-by: Victor Stratov <victor.stratov@avroid.tech>
This commit is contained in:
Nadezhda Lavrentieva
2024-10-15 10:22:28 +03:00
parent 85e1f7dbaf
commit a4b2c99c25
38 changed files with 2368 additions and 0 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM python:3.12
WORKDIR /app
EXPOSE 8000
COPY pyproject.toml poetry.lock ./
RUN pip --no-cache-dir install poetry
RUN poetry export --without-hashes -f requirements.txt -o requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "-m", "src.api_app"]