Skip to content

Commit 0ef79e7

Browse files
Stiv-workjohan-hultberg-work
authored andcommitted
Edit Dockerfile.model to use --platform
1 parent 5266dd2 commit 0ef79e7

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

minimal-ml-inference/Dockerfile.model

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG UBUNTU_VERSION=22.04
3+
ARG DEVICE_PLATFORM=linux/arm64/v8
44

5-
FROM arm64v8/alpine as model-image
5+
FROM --platform=$DEVICE_PLATFORM alpine as model-image
66

77
# Get SSD Mobilenet V2
88
ADD https://github.com/google-coral/edgetpu/raw/master/test_data/ssd_mobilenet_v2_coco_quant_postprocess.tflite models/

object-detector-python/Dockerfile.model

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM arm64v8/alpine as model-image
3+
ARG DEVICE_PLATFORM=linux/arm64/v8
4+
5+
FROM --platform=$DEVICE_PLATFORM alpine as model-image
46

57
# Get SSD Mobilenet V2
68
ADD https://github.com/google-coral/edgetpu/raw/master/test_data/ssd_mobilenet_v2_coco_quant_postprocess.tflite models/

pose-estimator-with-flask/Dockerfile.model

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM arm64v8/alpine
3+
ARG DEVICE_PLATFORM=linux/arm64/v8
4+
5+
FROM --platform=$DEVICE_PLATFORM alpine as model-image
46

57
# Get SSD Mobilenet V2
68
ADD https://raw.githubusercontent.com/google-coral/test_data/master/movenet_single_pose_lightning_ptq_edgetpu.tflite models/

0 commit comments

Comments
 (0)