Add linters configs

This commit is contained in:
2022-01-01 20:59:14 +03:00
parent 2a70687df0
commit 2a31f27f44
14 changed files with 532 additions and 76 deletions

View File

@@ -4,8 +4,11 @@ FROM python:3.10-slim as build-image
# && apt-get install --no-install-recommends -y gcc build-essential python3-dev libpq-dev libffi-dev \
# && rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY ./requirements.txt ./
WORKDIR /root/poetry
COPY pyproject.toml poetry.lock /root/poetry/
RUN pip install poetry --no-cache-dir \
&& poetry export --without-hashes > requirements.txt
ENV VENV_PATH=/opt/venv
RUN python -m venv $VENV_PATH \