Skip to content

Commit

Permalink
fix: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal committed Mar 21, 2024
1 parent cd858bd commit 544fba1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions templates/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ENV \
IMMICH_WEB_ROOT="/app/immich/server/www" \
NVIDIA_DRIVER_CAPABILITIES="compute,video,utility" \
SERVER_PORT="8080"

# run build
RUN \
echo "**** install build packages ****" && \
Expand Down Expand Up @@ -54,7 +54,7 @@ RUN \
libwebp-dev \
meson \
pkg-config \
{% if machine_learning_provider is not none and machine_learning_provider != "openvino" -%}
{% if machine_learning_provider and machine_learning_provider != "openvino" -%}
python3-dev \
{% endif -%}
unzip && \
Expand Down Expand Up @@ -93,7 +93,7 @@ RUN \
mesa-va-drivers \
nodejs \
perl \
{% if machine_learning_provider is not none and machine_learning_provider != "openvino" -%}
{% if machine_learning_provider and machine_learning_provider != "openvino" -%}
python3 \
python3-pip \
python3-venv \
Expand Down Expand Up @@ -291,7 +291,7 @@ RUN \
libwebp-dev \
meson \
pkg-config \
{% if machine_learning_provider is not none and machine_learning_provider != "openvino" -%}
{% if machine_learning_provider and machine_learning_provider != "openvino" -%}
python3-dev \
python3-pip \
{% endif -%}
Expand Down
2 changes: 1 addition & 1 deletion templates/svc-machine-learning/run.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# stop machine learning from starting
[[ "${DISABLE_MACHINE_LEARNING}" == "true" || "${IMMICH_MACHINE_LEARNING_URL}" != "http://127.0.0.1:3003" ]] && tail -f /dev/null

{% if machine_learning_provider is not none and machine_learning_provider != "openvino" -%}
{% if machine_learning_provider and machine_learning_provider != "openvino" -%}
lib_path="/usr/lib/$(arch)-linux-gnu/libmimalloc.so.2"
export LD_PRELOAD="$lib_path"
{% endif -%}
Expand Down

0 comments on commit 544fba1

Please sign in to comment.