Skip to content

Commit

Permalink
chore: debugging Dockerfile build arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Kaan Yagci <[email protected]>
  • Loading branch information
kaanyagci committed Mar 29, 2024
1 parent 918d952 commit f89906e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG DEBIAN_TAG
ARG TARGETPLATFORM
ARG GO_VERSION

FROM makepad/opencv:${DEBIAN_TAG}-${OPENCV_VERSION}
FROM --platform=${TARGETPLATFORM} makepad/opencv:${DEBIAN_TAG}-${OPENCV_VERSION}


WORKDIR /app
Expand All @@ -13,10 +13,8 @@ RUN echo ${TARGETPLATFORM}
RUN apt-get update -y && \
apt-get install -y wget tar --no-install-recommends

RUN echo "DEBIAN_TAG=${DEBIAN_TAG}"
RUN echo "OPENCV_VERSION=${OPENCV_VERSION}"
RUN echo "GO_VERSION=${GO_VERSION}"
RUN echo "TARGETPLATFORM=${TARGETPLATFORM}"
ARG TARGETPLATFORM
ARG GO_VERSION

RUN GO_ARCH=$(echo $TARGETPLATFORM | sed 's|/|-|g') && \
echo "https://go.dev/dl/go${GO_VERSION}.${GO_ARCH}.tar.gz"
Expand Down

0 comments on commit f89906e

Please sign in to comment.