Daniel Nilsen
03/02/2022, 2:59 PMStep 15/15 : RUN python /opt/prefect/healthcheck.py '["flow-data_transformation.py"]' '(3, 10)'
---> Running in 2853f6886cd5
File "/opt/prefect/healthcheck.py", line 17
def system_check(python_version: str):
^
SyntaxError: invalid syntax
node:16
as base and has python3
installedAnna Geller
03/02/2022, 3:08 PMflow.storage = Docker(ignore_healthchecks=True)
stored_as_script=True
.Daniel Nilsen
03/02/2022, 3:23 PMpython
in the container it runs Python 2.7.16
. I am guessing the health check needs python 3.5+ ? 🤔
Is there a way I can have prefect Docker builder call python3
instead?Anna Geller
03/02/2022, 3:34 PMDaniel Nilsen
03/02/2022, 3:45 PMnode.js
. I do not have a dependency on python2
. My deps are python3
and some pip
packages.
FROM node:16
COPY ./src/flows/data_transformation ./
COPY ./requirements.txt ./requirements.txt
RUN apt-get update
RUN apt-get install -y python3-pip
RUN pip3 install --no-cache --upgrade pip setuptools
RUN pip3 install -r requirements.txt
Anna Geller
03/02/2022, 3:54 PMFROM node:16
RUN apt-get update
RUN apt-get install -y python3-pip
RUN pip3 install --no-cache --upgrade pip setuptools
COPY ./requirements.txt ./requirements.txt
RUN pip3 install -r requirements.txt
COPY ./src/flows/data_transformation ./
Daniel Nilsen
03/02/2022, 3:56 PM