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>
16 lines
292 B
Docker
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"]
|