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

Docker Compose doesn't seem to read env variables

This is my docker-compose.yml version: "3" services: db: build: context: db volumes: - donazioni-vol:/var/lib/mysql env_file: - config.env generatore: build: context: generatore env_file: - config.env depends_on: - db volumes: donazioni-vol: This is my config.env file: MYSQL_USER=dockerdev MYSQL_PASSWORD=topolino MYSQL_ROOT_PASSWORD=topolino MYSQL_DATABASE=solidarieta This is…

VIEW QUESTION
Back To Top
Search