This commit is contained in:
Valeria Fadeeva 2025-07-26 21:17:58 +05:00
parent 24cb31c1db
commit dcddb627bd
2 changed files with 3 additions and 2 deletions

View File

@ -9,8 +9,9 @@ WORKDIR /app
# Export poetry dependencies to file # Export poetry dependencies to file
RUN pip install --upgrade pip RUN pip install --upgrade pip
RUN pip install poetry poetry-plugin-export RUN pip install poetry poetry-plugin-export
COPY poetry.lock pyproject.toml ./
RUN poetry lock RUN poetry lock
RUN poetry self update
COPY poetry.lock pyproject.toml ./
RUN poetry export --without-hashes --format requirements.txt --output /app/requirements.txt RUN poetry export --without-hashes --format requirements.txt --output /app/requirements.txt
##################### #####################

View File

@ -14,9 +14,9 @@ source "${CWD}/.venv/bin/activate"
pip install --upgrade pip pip install --upgrade pip
pip install poetry poetry-plugin-export pip install poetry poetry-plugin-export
poetry lock poetry lock
poetry self update
poetry export --without-hashes --format requirements.txt --output ./requirements.txt poetry export --without-hashes --format requirements.txt --output ./requirements.txt
pip install --no-cache-dir -r requirements.txt pip install --no-cache-dir -r requirements.txt
poetry self update
pip show uvicorn | grep -E "Name:|Version:|Location:" pip show uvicorn | grep -E "Name:|Version:|Location:"
pip show gunicorn | grep -E "Name:|Version:|Location:" pip show gunicorn | grep -E "Name:|Version:|Location:"