Skip to content

Commit

Permalink
Merge pull request #89 from crazy-max/update-deps
Browse files Browse the repository at this point in the history
Use official images
  • Loading branch information
crazy-max committed Jul 20, 2021
2 parents 5bcefc9 + 10428f3 commit fc6fe56
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions hack/test.Dockerfile
@@ -1,5 +1,10 @@
# syntax=docker/dockerfile:1.2
ARG NODE_VERSION
ARG DOCKER_VERSION=20.10.7
ARG BUILDX_VERSION=0.6.0

FROM docker:${DOCKER_VERSION} as docker
FROM docker/buildx-bin:${BUILDX_VERSION} as buildx

FROM node:${NODE_VERSION}-alpine AS base
RUN apk add --no-cache binutils curl git unzip
Expand All @@ -26,8 +31,8 @@ ENV RUNNER_TEMP=/tmp/github_runner
ENV RUNNER_TOOL_CACHE=/tmp/github_tool_cache
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/node_modules \
--mount=type=bind,from=crazymax/docker,source=/usr/libexec/docker/cli-plugins/docker-buildx,target=/usr/libexec/docker/cli-plugins/docker-buildx \
--mount=type=bind,from=crazymax/docker,source=/usr/local/bin/docker,target=/usr/bin/docker \
--mount=type=bind,from=docker,source=/usr/local/bin/docker,target=/usr/bin/docker \
--mount=type=bind,from=buildx,source=/buildx,target=/usr/libexec/docker/cli-plugins/docker-buildx \
yarn run test --coverageDirectory=/tmp/coverage

FROM scratch AS test-coverage
Expand Down

0 comments on commit fc6fe56

Please sign in to comment.