From 1254d33d614d6cfb8787f27fc596ba8f4aaa4d86 Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev Date: Sat, 21 Jan 2023 23:36:51 +0300 Subject: [PATCH] add dev export to requirements.txt --- Dockerfile | 2 +- README.md | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ce3e075..b14aad1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,7 @@ WORKDIR /code RUN export PATH="/root/.local/bin:$PATH" \ && poetry --version \ && poetry lock \ - && poetry export -f requirements.txt --without-hashes --output requirements.txt + && poetry export -f requirements.txt --with dev --without-hashes --output requirements.txt CMD [ "/bin/bash", "-c", "cp /code/* /poetry -r && chown ${USER}:$USER -R /poetry" ] diff --git a/README.md b/README.md index af1f7d2..bd56867 100644 --- a/README.md +++ b/README.md @@ -26,4 +26,9 @@ docker build --build-arg USER=$USER -t poetry-python . && docker run --rm -u $US docker-compose up --build ``` -script will generate `poetry.lock` and `requirements.txt` files in `poetry` directory \ No newline at end of file +script will generate `poetry.lock` and `requirements.txt` files in `poetry` directory + +## Local poetry export +```bash +poetry export -f requirements.txt --with dev --without-hashes --output requirements.txt +``` \ No newline at end of file