File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ config: ## Create config for your locust tests
9595
9696.PHONY : build-test-image push-test-image
9797build-test-image : _check_venv_active # # Build test image
98- docker build --build-arg PYTHON_VERSION=$(shell python --version | cut -d' ' -f2) -t ${TEST_IMAGE_NAME} :${TEST_IMAGE_TAG} ./docker
98+ docker build --build-arg PYTHON_VERSION=" $( shell python --version | cut -d' ' -f2) " --build-arg UV_VERSION= " $( shell uv --version | cut -d ' ' -f2 ) " -t ${TEST_IMAGE_NAME} :${TEST_IMAGE_TAG} ./docker
9999
100100push-test-image : # # Push test image to dockerhub
101101 docker push ${TEST_IMAGE_NAME} :${TEST_IMAGE_TAG}
Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
22
3- ARG UV_VERSION="0.4"
4- FROM cruizba/ubuntu-dind:latest as base
53
4+ FROM cruizba/ubuntu-dind:latest AS base
5+ ARG PYTHON_VERSION
66LABEL maintainer=bisgaard-itis
77
88# Sets utf-8 encoding for Python et al
99ENV LANG=C.UTF-8
10- ENV UV_PYTHON=3.11.9
10+ ENV UV_PYTHON=${PYTHON_VERSION}
1111
1212# Turns off writing .pyc files; superfluous on an ephemeral container.
1313ENV PYTHONDONTWRITEBYTECODE=1 \
@@ -27,7 +27,7 @@ RUN apt-get update \
2727 jq
2828
2929# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
30- COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
30+ COPY --from=ghcr.io/astral-sh/uv:0.4 /uv /uvx /bin/
3131
3232RUN uv venv "${VIRTUAL_ENV}"
3333
You can’t perform that action at this time.
0 commit comments