skip to Main Content

Unable to run tensorflow in Docker

I have created a Dockerfile as shown below: FROM tensorflow/tensorflow:latest WORKDIR /code COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY ./app /code/app CMD ["fastapi", "run", "app/main.py", "--port", "80"] and requirements.txt file with following values: fastapi>=0.110.0,<0.113.0 pydantic>=2.7.0,<3.0.0 tensorflow…

VIEW QUESTION
Back To Top
Search