Skip to content

Commit 5ec769b

Browse files
committed
Fixed issue with python version in Dockerfile
1 parent 9c67650 commit 5ec769b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
FROM prefecthq/prefect:2.20.7-python3.12-kubernetes
1+
ARG PREFECT_VERSION=2.20.7
2+
ARG PYTHON_VERSION=3.12
3+
4+
FROM prefecthq/prefect:$PREFECT_VERSION-python$PYTHON_VERSION-kubernetes
25

36
RUN pip install omnipy_examples
47
# RUN pip uninstall omnipy_examples -y
@@ -13,4 +16,4 @@ RUN set -eux; \
1316
echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen; \
1417
locale-gen; \
1518
update-locale en_us.UTF-8;
16-
RUN ln -sf /usr/local/lib/python3.10/site-packages /opt/prefect/src
19+
RUN ln -sf /usr/local/lib/python$PYTHON_VERSION/site-packages /opt/prefect/src

0 commit comments

Comments
 (0)