Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobi-De committed Sep 2, 2024
2 parents ba74db5 + 87d0544 commit 2a00486
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions {{ cookiecutter.project_name }}/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,16 @@ build-bin-docker:
docker run -it -v "${PWD}:/app" -w /app --name final-build build-bin-container just build-wheel && just build-bin
docker cp final-build:/app/dist .
docker rm -f final-build


# Build docker image
build-docker-image:
#!/usr/bin/env bash
set -euo pipefail
current_version=$(hatch version)
image_name="{% endraw %}{{ cookiecutter.project_name }}{% raw %}"
just install
docker build -t "${image_name}:${current_version}" -f deploy/Dockerfile .
docker tag "${image_name}:${current_version}" "${image_name}:latest"
echo "Built docker image ${image_name}:${current_version}"
{% endraw %}

0 comments on commit 2a00486

Please sign in to comment.