Однако, когда я пытаюсь сейчас собрать докер, он не может найти TensorFlow 2.12.0 и говорит, что доступны только 12.16.0rc и 12.16.1. Как я могу снова увидеть версию 2.12.0? Вот мой Dockerfile:
Код: Выделить всё
# Build stage
FROM python:3.7-slim AS build
WORKDIR /todo
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
RUN apt-get update
RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
RUN conda --version
RUN apt-get --purge autoremove -y wget
RUN python -m pip install --no-cache-dir --no-deps tensorflow-cpu==2.12.0 # [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.68kB 0.0s
=> [internal] load metadata for docker.io/library/python:3.7-slim-buster 3.4s
=> [auth] library/python:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [build 1/8] FROM docker.io/library/python:3.7-slim-buster@sha256:9bd2bfc822a533f99cbe6b1311d5bf0ff136f776ebac9b985407829f17278935 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 533B 0.0s
=> CACHED [build 2/8] WORKDIR /todo 0.0s
=> [build 3/8] RUN apt-get update 6.5s
=> CANCELED [stage-1 3/12] RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* 32.7s
=> [build 4/8] RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/* 2.9s
=> [build 5/8] RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && mkdir /root/.conda && bash Miniconda3-latest-Linux-x86_64.sh -b && rm -f Miniconda3-latest-Linux- 20.8s
=> [build 6/8] RUN conda --version 0.5s
=> [build 7/8] RUN apt-get --purge autoremove -y wget 0.5s
=> ERROR [build 8/8] RUN python -m pip install --no-cache-dir --no-deps tensorflow-cpu==2.12.0 1.4s
------
> [build 8/8] RUN python -m pip install --no-cache-dir --no-deps tensorflow-cpu==2.12.0:
1.094 ERROR: Could not find a version that satisfies the requirement tensorflow-cpu==2.12.0 (from versions: 2.16.0rc0, 2.16.1)
1.094 ERROR: No matching distribution found for tensorflow-cpu==2.12.0
------
Dockerfile:22
--------------------
20 | RUN apt-get --purge autoremove -y wget
21 |
22 | >>> RUN python -m pip install --no-cache-dir --no-deps tensorflow-cpu==2.12.0
23 |
24 | # Runtime stage
--------------------
ERROR: failed to solve: process "/bin/sh -c python -m pip install --no-cache-dir --no-deps tensorflow-cpu==2.12.0" did not complete successfully: exit code: 1
Подробнее здесь: https://stackoverflow.com/questions/783 ... are-update