Skip to content

Commit 440eaab

Browse files
committed
feat: move docker base alpinealpine/git
1 parent b9b9c2f commit 440eaab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# cross-compiled, it cannot have ANY "RUN" commands. All binaries are built
33
# using the go toolchain on the host and then copied into the build context by
44
# scripts/build_docker.sh.
5-
FROM alpine:latest
5+
FROM alpine/git:latest
66

77
# LABEL doesn't add any real layers so it's fine (and easier) to do it here than
88
# in the build script.

scripts/build_docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ 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 1>&2
104+
docker pull --platform "$arch" alpine/git:latest 1>&2
105105

106-
temp_container_id="$(docker create --platform "$arch" alpine:latest)"
106+
temp_container_id="$(docker create --platform "$arch" alpine/git:latest)"
107107
docker cp "$temp_container_id":/etc/group ./group 1>&2
108108
docker cp "$temp_container_id":/etc/passwd ./passwd 1>&2
109109
docker rm "$temp_container_id" 1>&2

0 commit comments

Comments
 (0)