Skip to content

Commit

Permalink
Update arch suffix for amd64 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
mesaugat committed Feb 9, 2024
1 parent 4ab08f3 commit b9c79df
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# STAGE: base
# -----------
# The main image that is published.
FROM python:3.11.8-slim-bookworm AS base
FROM python:3.11-slim-bookworm AS base

ARG TARGETPLATFORM

COPY requirements.txt .

RUN \
ARCH=$(case ${TARGETPLATFORM:-linux/amd64} in \
"linux/amd64") echo "x86-64" ;; \
"linux/arm/v7") echo "armhf" ;; \
"linux/arm64") echo "aarch64" ;; \
*) echo "" ;; esac) && \
"linux/amd64") echo "x86-64bit" ;; \
"linux/arm64") echo "aarch64" ;; \
*) echo "" ;; esac) && \
echo "ARCH=$ARCH" && \
# Install build dependencies
apt-get update && \
Expand Down

0 comments on commit b9c79df

Please sign in to comment.