Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ COPY --from=ghcr.io/astral-sh/uv:0.10.9 /uv /usr/local/bin/uv

ENV UV_COMPILE_BYTECODE=1

# Install dependencies BEFORE copying source so an edit under src/
# doesn't invalidate the cache of the (expensive) requirements-install layer.
COPY pyproject.toml requirements.txt README.md MANIFEST.in ./
COPY src ./src

RUN uv pip install --system --upgrade pip && \
uv pip install --system build && \
uv pip install --system --prefix=/install -r requirements.txt && \
uv pip install --system --prefix=/install --no-deps .
uv pip install --system --prefix=/install -r requirements.txt

COPY src ./src
RUN uv pip install --system --prefix=/install --no-deps .
Comment thread
tomaslink marked this conversation as resolved.

# ---------------------------------------------------------------------------------------
# PRODUCTION IMAGE
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespaces = false

[project]
name = "python-app-template"
version = "0.2.1"
version = "0.2.2"
description = "A template for python (dockerized) applications."
readme = "README.md"
license = "Apache-2.0"
Expand Down
Loading