add dev export to requirements.txt

This commit is contained in:
Dmitry Afanasyev 2023-01-21 23:36:51 +03:00
parent 5a807374e4
commit 1254d33d61
2 changed files with 7 additions and 2 deletions

View File

@ -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" ]

View File

@ -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
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
```