mirror of
https://github.com/batonogov/learn-devops.git
synced 2026-02-07 23:00:41 +00:00
Add uv example (#30)
Co-authored-by: Fedor Batonogov <f.batonogov@yandex.ru>
This commit is contained in:
committed by
GitHub
parent
a998a1bfdb
commit
ea0d72d879
16
docker/uv/Makefile
Normal file
16
docker/uv/Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
reqs:
|
||||
rm ./requirements.txt || true
|
||||
uv pip compile --generate-hashes pyproject.toml --output-file ./requirements.txt
|
||||
|
||||
venv:
|
||||
uv venv --python 3.13
|
||||
uv pip install --require-hashes --requirements ./requirements.txt
|
||||
. .venv/bin/activate
|
||||
|
||||
build:
|
||||
time docker build --no-cache --file Dockerfile -t uv .
|
||||
docker images
|
||||
|
||||
build-pip:
|
||||
time docker build --no-cache --file Dockerfile.pip -t pip .
|
||||
docker images
|
||||
Reference in New Issue
Block a user