Skip to content

Commit 37831a7

Browse files
committed
Update test Dockerfile
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
1 parent ad1d2e9 commit 37831a7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

hack/test.Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# syntax=docker/dockerfile:1.2
22
ARG NODE_VERSION
3+
ARG DOCKER_VERSION=20.10.7
4+
ARG BUILDX_VERSION=0.6.0
5+
6+
FROM docker:${DOCKER_VERSION} as docker
7+
FROM docker/buildx-bin:${BUILDX_VERSION} as buildx
38

49
FROM node:${NODE_VERSION}-alpine AS base
510
RUN apk add --no-cache git
@@ -15,8 +20,8 @@ ENV RUNNER_TEMP=/tmp/github_runner
1520
ENV RUNNER_TOOL_CACHE=/tmp/github_tool_cache
1621
RUN --mount=type=bind,target=.,rw \
1722
--mount=type=cache,target=/src/node_modules \
18-
--mount=type=bind,from=crazymax/docker,source=/usr/libexec/docker/cli-plugins/docker-buildx,target=/usr/libexec/docker/cli-plugins/docker-buildx \
19-
--mount=type=bind,from=crazymax/docker,source=/usr/local/bin/docker,target=/usr/bin/docker \
23+
--mount=type=bind,from=docker,source=/usr/local/bin/docker,target=/usr/bin/docker \
24+
--mount=type=bind,from=buildx,source=/buildx,target=/usr/libexec/docker/cli-plugins/docker-buildx \
2025
yarn run test --coverageDirectory=/tmp/coverage
2126

2227
FROM scratch AS test-coverage

0 commit comments

Comments
 (0)