mirror of
https://github.com/Balshgit/python-poetry.git
synced 2025-09-11 21:50:40 +03:00
update README.md
This commit is contained in:
parent
a328058a58
commit
a894a1a7e1
@ -4,8 +4,12 @@ Used for poetry packages management with docker
|
||||
|
||||
required `docker` and optionally `docker-compose`
|
||||
|
||||
---
|
||||
|
||||
## Generate poetry lock for any version
|
||||
|
||||
**Generate poetry.lock and requirements.txt in container for any version of python3 and poetry**
|
||||
|
||||
### Prepare:
|
||||
|
||||
- copy `pyproject.toml` file to `poetry` dir
|
||||
- In Dockerfile set `python` version the same as in `pyproject.toml` and `poetry` version which will be used
|
||||
@ -17,7 +21,7 @@ required `docker` and optionally `docker-compose`
|
||||
docker build --build-arg USER=$USER -t poetry-python . && docker run --rm -u $USER -v $PWD/poetry:/poetry poetry-python
|
||||
```
|
||||
|
||||
### Or from docker-compose:
|
||||
### Or run from docker-compose:
|
||||
```bash
|
||||
docker-compose up --build
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user