Skip to content

Commit 5ad27ef

Browse files
committed
[FIX] Building Docker image on M1 Macbook.
1 parent 83062d1 commit 5ad27ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN python -m build /src
4040
#
4141

4242
# Utilities for downloading packages
43-
FROM ${BASE_IMAGE} as downloader
43+
FROM --platform=linux/amd64 ${BASE_IMAGE} as downloader
4444

4545
# Bump the date to current to refresh curl/certificates/etc
4646
RUN echo "2023.11.09"
@@ -100,7 +100,7 @@ RUN /opt/conda/envs/sdcflows/bin/pip install --no-cache-dir -r /tmp/requirements
100100
#
101101
# Main stage
102102
#
103-
FROM ${BASE_IMAGE} as sdcflows
103+
FROM --platform=linux/amd64 ${BASE_IMAGE} as sdcflows
104104

105105
# Configure apt
106106
ENV DEBIAN_FRONTEND="noninteractive" \

0 commit comments

Comments
 (0)