Skip to content

Commit afa0e64

Browse files
committed
modify dockert to install latest version of the package always
1 parent 53a428b commit afa0e64

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ COPY .python-version pyproject.toml uv.lock /app/
1616

1717
# Create a virtual environment and sync dependencies
1818
RUN uv venv
19-
RUN uv sync --no-install-project
19+
RUN uv sync --no-install-project --no-default-groups
2020

2121
# Copy documentation source files
2222
COPY . .
23+
# above resets the cache, always clone the latest version of the project
24+
RUN . .venv/bin/activate && git clone https://github.com/hololinked-dev/hololinked.git && \
25+
cd hololinked && pip install -e . && cd ..
2326

2427
# development image
2528
FROM base AS dev

pyproject.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ description = "mkdocs material based documentation for hololinked"
55
readme = "README.md"
66
requires-python = ">=3.13"
77
dependencies = [
8-
"hololinked",
98
"mkdocs-autorefs==1.4.2",
109
"mkdocs-git-authors-plugin==0.9.5",
1110
"mkdocs-git-revision-date-localized-plugin==1.4.7",
@@ -16,9 +15,6 @@ dependencies = [
1615
"pip>=25.2",
1716
]
1817

19-
[tool.uv.sources]
20-
hololinked = { git = "https://github.com/hololinked-dev/hololinked.git", branch = "main" }
21-
2218
[dependency-groups]
2319
dev = [
2420
"ConfigParser==7.1.0",
@@ -33,5 +29,11 @@ dev = [
3329
"ruff>=0.12.10",
3430
"jupyter>=1.1.1",
3531
"requests==2.32.3",
36-
"imageio"
37-
]
32+
"imageio",
33+
]
34+
repo = [
35+
"hololinked"
36+
]
37+
38+
[tool.uv.sources]
39+
hololinked = { git = "https://github.com/hololinked-dev/hololinked.git", branch = "main" }

0 commit comments

Comments
 (0)