@@ -14,8 +14,6 @@ RUN touch /ok.txt
14
14
# -------------------------------
15
15
FROM python:3.7 as source_code_test
16
16
17
- ARG USE_BAZEL_VERSION
18
-
19
17
COPY tools/install_deps /install_deps
20
18
RUN --mount=type=cache,id=cache_pip,target=/root/.cache/pip \
21
19
cd /install_deps && pip install \
@@ -25,8 +23,8 @@ RUN --mount=type=cache,id=cache_pip,target=/root/.cache/pip \
25
23
-r pytest.txt
26
24
27
25
RUN apt-get update && apt-get install -y sudo rsync cmake
28
- COPY tools/docker/install/install_bazel .sh ./
29
- RUN ./install_bazel.sh $USE_BAZEL_VERSION
26
+ COPY tools/install_deps/install_bazelisk .sh .bazelversion ./
27
+ RUN bash install_bazelisk.sh
30
28
31
29
COPY ./ /recommenders-addons
32
30
RUN pip install -e /recommenders-addons
@@ -47,14 +45,12 @@ RUN touch /ok.txt
47
45
# -------------------------------
48
46
FROM python:3.7 as valid_build_files
49
47
50
- ARG USE_BAZEL_VERSION
51
-
52
48
COPY tools/install_deps/tensorflow-cpu.txt ./
53
49
RUN pip install --default-timeout=1000 -r tensorflow-cpu.txt
54
50
55
51
RUN apt-get update && apt-get install sudo
56
- COPY tools/docker/install/install_bazel .sh ./
57
- RUN ./install_bazel.sh $USE_BAZEL_VERSION
52
+ COPY tools/install_deps/install_bazelisk .sh .bazelversion ./
53
+ RUN bash install_bazelisk.sh
58
54
59
55
COPY ./ /recommenders-addons
60
56
WORKDIR /recommenders-addons
@@ -98,8 +94,6 @@ RUN touch /ok.txt
98
94
# docs tests
99
95
FROM python:3.7 as docs_tests
100
96
101
- ARG USE_BAZEL_VERSION
102
-
103
97
COPY tools/install_deps/tensorflow-cpu.txt ./
104
98
RUN pip install --default-timeout=1000 -r tensorflow-cpu.txt
105
99
COPY requirements.txt ./
@@ -109,8 +103,8 @@ COPY tools/install_deps/doc_requirements.txt ./
109
103
RUN pip install -r doc_requirements.txt
110
104
111
105
RUN apt-get update && apt-get install -y sudo rsync cmake
112
- COPY tools/docker/install/install_bazel .sh ./
113
- RUN ./install_bazel.sh $USE_BAZEL_VERSION
106
+ COPY tools/install_deps/install_bazelisk .sh .bazelversion ./
107
+ RUN bash install_bazelisk.sh
114
108
115
109
COPY ./ /recommenders-addons
116
110
WORKDIR /recommenders-addons
@@ -129,8 +123,6 @@ RUN touch /ok.txt
129
123
# test the editable mode
130
124
FROM python:3.7 as test_editable_mode
131
125
132
- ARG USE_BAZEL_VERSION
133
-
134
126
COPY tools/install_deps/tensorflow-cpu.txt ./
135
127
RUN pip install --default-timeout=1000 -r tensorflow-cpu.txt
136
128
COPY requirements.txt ./
@@ -139,8 +131,8 @@ COPY tools/install_deps/pytest.txt ./
139
131
RUN pip install -r pytest.txt
140
132
141
133
RUN apt-get update && apt-get install -y sudo rsync cmake
142
- COPY tools/docker/install/install_bazel .sh ./
143
- RUN ./install_bazel.sh $USE_BAZEL_VERSION
134
+ COPY tools/install_deps/install_bazelisk .sh .bazelversion ./
135
+ RUN bash install_bazelisk.sh
144
136
145
137
COPY ./ /recommenders-addons
146
138
WORKDIR /recommenders-addons
0 commit comments