diff --git a/docker/batch-change-volume-workspace/Dockerfile b/docker/batch-change-volume-workspace/Dockerfile index 0dc4340f64..969181eeda 100644 --- a/docker/batch-change-volume-workspace/Dockerfile +++ b/docker/batch-change-volume-workspace/Dockerfile @@ -4,4 +4,4 @@ FROM alpine:3.15.0@sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300 -RUN apk add --update git unzip +RUN apk add --update git libarchive-tools diff --git a/internal/batches/workspace/volume_workspace.go b/internal/batches/workspace/volume_workspace.go index 5cc8222a2f..84423ec9c8 100644 --- a/internal/batches/workspace/volume_workspace.go +++ b/internal/batches/workspace/volume_workspace.go @@ -153,7 +153,7 @@ func (wc *dockerVolumeWorkspaceCreator) unzipRepoIntoVolume(ctx context.Context, opts, DockerVolumeWorkspaceImage, "sh", "-c", - fmt.Sprintf("unzip /tmp/zip; rm /work/%s", dummy), + fmt.Sprintf("bsdtar -xf /tmp/zip && rm /work/%s", dummy), ) if out, err := exec.CommandContext(ctx, "docker", opts...).CombinedOutput(); err != nil {