Skip to content

Commit 020e8e6

Browse files
committed
fixup! Revert "fix: Remove alternative image architectures until we virtualize (#3336)"
1 parent 84a9893 commit 020e8e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/build_docker.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ log "--- Building Docker image for $arch ($image_tag)"
101101
# add the coder group and user. We have to do this in a separate step instead of
102102
# using the RUN directive in the Dockerfile because you can't use RUN if you're
103103
# building the image for a different architecture than the host.
104-
docker pull --platform "$arch" alpine:latest
104+
docker pull --platform "$arch" alpine:latest 1>&2
105105

106106
temp_container_id="$(docker create --platform "$arch" alpine:latest)"
107-
docker cp "$temp_container_id":/etc/group ./group
108-
docker cp "$temp_container_id":/etc/passwd ./passwd
109-
docker rm "$temp_container_id"
107+
docker cp "$temp_container_id":/etc/group ./group 1>&2
108+
docker cp "$temp_container_id":/etc/passwd ./passwd 1>&2
109+
docker rm "$temp_container_id" 1>&2
110110

111111
echo "coder:x:1000:coder" >> ./group
112112
echo "coder:x:1000:1000::/:/bin/sh" >> ./passwd

0 commit comments

Comments
 (0)