File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ COPY . /app
21
21
# Create virtual environment, upgrade pip and install dependencies using uv for speed
22
22
RUN python3 -m venv /app/.venv && \
23
23
/app/.venv/bin/python3 -m pip install --upgrade pip setuptools pdm uv && \
24
- /app/.venv/bin/python3 -m uv pip install .
24
+ /app/.venv/bin/python3 -m uv pip install .[redis,postgres]
25
25
26
26
# update the user permissions
27
27
RUN chown -R 1001:0 /app && \
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ COPY . /app
63
63
RUN set -euo pipefail \
64
64
&& python3 -m venv /app/.venv \
65
65
&& /app/.venv/bin/pip install --no-cache-dir --upgrade pip setuptools wheel pdm uv \
66
- && /app/.venv/bin/uv pip install . \
66
+ && /app/.venv/bin/uv pip install .[redis,postgres] \
67
67
&& rm -rf /root/.cache /var/cache/dnf
68
68
69
69
# ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ os-deps: $(OS_DEPS_SCRIPT)
71
71
# help: activate - Activate the virtual environment in the current shell
72
72
# help: install - Install project into the venv
73
73
# help: install-dev - Install project (incl. dev deps) into the venv
74
+ # help: install-db - Install project (incl. postgres and redis) into venv
74
75
# help: update - Update all installed deps inside the venv
75
76
.PHONY : venv
76
77
venv :
@@ -91,6 +92,10 @@ activate:
91
92
install : venv
92
93
@/bin/bash -c " source $( VENV_DIR) /bin/activate && python3 -m uv pip install ."
93
94
95
+ .PHONY : install-db
96
+ install-db : venv
97
+ @/bin/bash -c " source $( VENV_DIR) /bin/activate && python3 -m uv pip install .[redis,postgres]"
98
+
94
99
.PHONY : install-dev
95
100
install-dev : venv
96
101
@/bin/bash -c " source $( VENV_DIR) /bin/activate && python3 -m uv pip install .[dev]"
Original file line number Diff line number Diff line change @@ -70,6 +70,10 @@ redis = [
70
70
" redis>=6.1.0" ,
71
71
]
72
72
73
+ postgres = [
74
+ " psycopg2-binary>=2.9.10" ,
75
+ ]
76
+
73
77
# Optional dependency groups (development)
74
78
dev = [
75
79
" argparse-manpage>=4.6" ,
You can’t perform that action at this time.
0 commit comments