Skip to content

Commit f9523bd

Browse files
committed
refactor(docker): Define required Python packages in separate file
This will for example allow to easily control versions of specific Python packages if needed. Signed-off-by: Johanna Lamppu <[email protected]>
1 parent e13e913 commit f9523bd

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.reuse/dep5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,7 @@ License: CC-BY-4.0
181181
Files: renovate.json
182182
Copyright: 2024 Double Open Oy
183183
License: CC-BY-4.0
184+
185+
Files: requirements.txt
186+
Copyright: 2025 Double Open Oy
187+
License: CC-BY-4.0

Worker.Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ RUN apt-get update && \
1616
# Create a virtual environment for Python
1717
RUN python3 -m venv /venv
1818

19+
# Copy the requirements file to the container
20+
COPY requirements.txt /venv/
21+
1922
# Activate the virtual environment and install required Python packages
20-
RUN /venv/bin/pip install scancode-toolkit==32.1.0
23+
RUN /venv/bin/pip install -r /venv/requirements.txt
2124

2225
# DOS
2326

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scancode-toolkit==32.1.0

0 commit comments

Comments
 (0)