Files
learn-devops/docker/uv/Makefile
github-actions[bot] ea0d72d879 Add uv example (#30)
Co-authored-by: Fedor Batonogov <f.batonogov@yandex.ru>
2024-12-23 17:33:29 +03:00

17 lines
405 B
Makefile

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