Add UV_ARGS build argument
Which allows customizing uv installation behavior
This commit is contained in:
parent
27312ecfaf
commit
54ab31b853
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
FROM ghcr.io/astral-sh/uv:python3.11-bookworm
|
FROM ghcr.io/astral-sh/uv:python3.11-bookworm
|
||||||
|
|
||||||
|
ARG UV_ARGS=""
|
||||||
|
|
||||||
# copy from the cache instead of linking since mounted volumes are used
|
# copy from the cache instead of linking since mounted volumes are used
|
||||||
ENV UV_LINK_MODE=copy
|
ENV UV_LINK_MODE=copy
|
||||||
ENV UV_CACHE_DIR=/app/.cache/uv
|
ENV UV_CACHE_DIR=/app/.cache/uv
|
||||||
|
|
@ -23,6 +25,7 @@ COPY pyproject.toml uv.lock /app
|
||||||
COPY transip_client /app/transip_client
|
COPY transip_client /app/transip_client
|
||||||
|
|
||||||
# install dependencies + project
|
# install dependencies + project
|
||||||
RUN --mount=type=cache,uid=1000,target=/app/.cache/uv uv sync --frozen --no-dev
|
RUN --mount=type=cache,uid=1000,target=/app/.cache/uv \
|
||||||
|
uv sync --frozen --no-dev $UV_ARGS
|
||||||
|
|
||||||
ENTRYPOINT ["transip-listen"]
|
ENTRYPOINT ["transip-listen"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue