File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,17 @@ FROM arm64v8/ubuntu:${UBUNTU_VERSION} AS containerized_aarch64
9
9
FROM arm32v7/ubuntu:${UBUNTU_VERSION} AS containerized_armv7hf
10
10
11
11
FROM ${REPO}/acap-native-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} AS acap-native-sdk
12
+
13
+ FROM acap-native-sdk AS tensorflow
14
+
15
+ WORKDIR /opt
16
+
17
+ # Get TensorFlow and TensorFlow Serving - doing this in parallell saves a little bit of time
18
+ RUN <<EOF
19
+ git clone -b r2.9 https://github.com/tensorflow/tensorflow.git /opt/tensorflow/tensorflow
20
+ git clone -b r2.9 https://github.com/tensorflow/serving.git /opt/tensorflow/serving
21
+ EOF
22
+
12
23
FROM acap-native-sdk AS build
13
24
14
25
ARG ARCH
@@ -151,11 +162,8 @@ RUN <<EOF
151
162
"$SDKTARGETSYSROOT" /usr/include
152
163
EOF
153
164
154
- # Get TensorFlow and TensorFlow Serving
155
- RUN <<EOF
156
- git clone -b r2.9 https://github.com/tensorflow/tensorflow.git /opt/tensorflow/tensorflow
157
- git clone -b r2.9 https://github.com/tensorflow/serving.git /opt/tensorflow/serving
158
- EOF
165
+ # Get TensorFlow and TensorFlow Serving that we've pulled in parallell
166
+ COPY --from=tensorflow /opt/tensorflow /opt/tensorflow
159
167
160
168
# # Setup build structure
161
169
WORKDIR /opt/app
You can’t perform that action at this time.
0 commit comments