Compare commits

...

2 commits

Author SHA1 Message Date
27312ecfaf Update changelog
All checks were successful
ci/woodpecker/push/tests Pipeline was successful
2025-02-28 08:58:17 +01:00
c81715ad1f Use --no-dev & set UV_LINK_MODE 2025-02-28 08:47:34 +01:00
2 changed files with 15 additions and 5 deletions

View file

@ -1,15 +1,22 @@
# Changelog
# 0.6.0
- Replaced dns query usage with calling an external API
- Replaced gitlab CI with Woodpecker configuration
- Refactored optional dependencies & implemented dependency groups
- Moved to uv.lock file for pinning dependencies
# 0.5.1
- Update gitlab CI configuration
# 0.5.0
- Remove poetry
- Removed poetry
- Use `setuptools` for packaging
- Added a `Makefile`
- Use `pip-compile` for dependecy management
- Use `pip-compile` for dependency management
# 0.4.0

View file

@ -1,6 +1,9 @@
FROM ghcr.io/astral-sh/uv:python3.11-bookworm
# copy from the cache instead of linking since mounted volumes are used
ENV UV_LINK_MODE=copy
ENV UV_CACHE_DIR=/app/.cache/uv
ENV PATH="/app/.venv/bin:$PATH"
RUN useradd --shell /bin/bash --uid 1000 transip_client
@ -14,12 +17,12 @@ RUN mkdir --parents /app/.cache/uv
RUN --mount=type=cache,uid=1000,target=/app/.cache/uv \
--mount=type=bind,source=uv.lock,target=/app/uv.lock \
--mount=type=bind,source=pyproject.toml,target=/app/pyproject.toml \
uv sync --frozen --no-install-project
uv sync --frozen --no-dev --no-install-project
COPY pyproject.toml uv.lock /app
COPY transip_client /app/transip_client
# install dependencies + project
RUN --mount=type=cache,uid=1000,target=/app/.cache/uv uv sync --frozen
RUN --mount=type=cache,uid=1000,target=/app/.cache/uv uv sync --frozen --no-dev
ENTRYPOINT ["uv", "run", "--", "transip-listen"]
ENTRYPOINT ["transip-listen"]