mirror of
https://github.com/Balshgit/python-poetry.git
synced 2025-09-11 21:50:40 +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" \
|
RUN export PATH="/root/.local/bin:$PATH" \
|
||||||
&& poetry --version \
|
&& poetry --version \
|
||||||
&& poetry lock \
|
&& 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" ]
|
CMD [ "/bin/bash", "-c", "cp /code/* /poetry -r && chown ${USER}:$USER -R /poetry" ]
|
||||||
|
|
||||||
|
@ -27,3 +27,8 @@ 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