Files
template-backend-service/Dockerfile
Nadezhda Lavrentieva a4b2c99c25 [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>
2024-10-15 10:22:28 +03:00

16 lines
292 B
Docker

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"]