Skip to content

Commit 60fd2e7

Browse files
committed
Fix mkdir brace expansion in Dockerfile
Brace expansion {bin,lib,share} is a bash feature that does not work in Docker's /bin/sh. Replace with explicit mkdir calls for each directory. Signed-off-by: Anamika AggarwaL <anamikaagg18@gmail.com>
1 parent 83a84ad commit 60fd2e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bindist/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ RUN git clone --recurse-submodules https://github.com/p4lang/p4c.git \
9292
&& cd /build && rm -rf p4c
9393

9494
# Step 8: Collect artifacts into bindist
95-
RUN mkdir -p /build/bindist/p4-bindist-ubuntu2404-x86_64/{bin,lib,share}
95+
RUN mkdir -p /build/bindist/p4-bindist-ubuntu2404-x86_64/bin \
96+
&& mkdir -p /build/bindist/p4-bindist-ubuntu2404-x86_64/lib \
97+
&& mkdir -p /build/bindist/p4-bindist-ubuntu2404-x86_64/share
9698

9799
# Copy p4c binaries
98100
RUN for bin in p4c p4c-bm2-ss p4c-bm2-psa p4c-bm2-pna p4c-dpdk p4c-ebpf \

0 commit comments

Comments
 (0)