2024-03-14 22:27:37 +03:00
|
|
|
FROM python:3.10-slim
|
|
|
|
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
|
|
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
|
|
|
RUN pip install --upgrade pip
|
|
|
|
|
|
|
|
RUN pip install poetry
|
|
|
|
|
|
|
|
RUN poetry config virtualenvs.create false
|
|
|
|
|
|
|
|
RUN mkdir -p /usr/src/test_api
|
|
|
|
|
|
|
|
WORKDIR /usr/src/test_api
|
|
|
|
|
|
|
|
COPY ./poetry.lock .
|
|
|
|
|
|
|
|
COPY ./pyproject.toml .
|
|
|
|
|
2024-03-15 01:49:04 +03:00
|
|
|
RUN poetry install --without dev --no-root
|
2024-03-14 22:27:37 +03:00
|
|
|
|
|
|
|
ENV CONFIG_PATH='/usr/src/test_api/config/api_config.yml'
|
|
|
|
|
|
|
|
ENV INDOCKER=1
|
|
|
|
|
|
|
|
RUN touch __init__.py
|