Skip to content

Commit 387628a

Browse files
committed
DOC: update the description for the 'docker build' command
1 parent 728be93 commit 387628a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/source/development/contributing_environment.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,16 @@ Build the Docker image::
176176
# Build the image
177177
docker build -t pandas-dev .
178178

179+
180+
**Platform Specification**
181+
182+
If you encounter compatibility issues during the build process (especially on Apple Silicon Macs), specify the target platform::
183+
184+
# Highlight your platform in the docker build command for better compatibility
185+
docker build --platform=linux/amd64 -t pandas-dev .
186+
187+
The --platform flag makes the build to use the specified architecture (in this case x86_64), which provides better platform compatibility.
188+
179189
Run Container::
180190

181191
# Run a container and bind your local repo to the container

0 commit comments

Comments
 (0)