mirror of
https://github.com/Balshgit/python-poetry.git
synced 2025-09-10 16:30:41 +03:00
add dev export to requirements.txt
This commit is contained in:
parent
5a807374e4
commit
1254d33d61
@ -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" ]
|
||||
|
||||
|
@ -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
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user