Compare commits
No commits in common. "97cf1a8f5c665b15ba6b1b4f699c04547485b26f" and "27312ecfafe905edf2cb8a4787df550b8fcb0ff6" have entirely different histories.
97cf1a8f5c
...
27312ecfaf
1 changed files with 3 additions and 8 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -1,15 +1,11 @@
|
|||
FROM python:3.11-alpine
|
||||
|
||||
ARG UV_ARGS=""
|
||||
|
||||
COPY --from=ghcr.io/astral-sh/uv:python3.11-alpine /uv /uvx /bin/
|
||||
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 --uid 1000 transip_client
|
||||
RUN useradd --shell /bin/bash --uid 1000 transip_client
|
||||
|
||||
USER transip_client
|
||||
|
||||
|
|
@ -27,7 +23,6 @@ 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 --no-dev $UV_ARGS
|
||||
RUN --mount=type=cache,uid=1000,target=/app/.cache/uv uv sync --frozen --no-dev
|
||||
|
||||
ENTRYPOINT ["transip-listen"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue