node-sdk/Dockerfile

16 строки
341 B
Docker

# syntax = docker/dockerfile:experimental
FROM node:12-alpine as base
ARG DOCKER_GITHUB_TOKEN
ENV DOCKER_GITHUB_TOKEN=${DOCKER_GITHUB_TOKEN}
COPY package.json .
COPY yarn.lock .
RUN --mount=type=cache,target=cache \
yarn install --frozen-lockfile
COPY . .
RUN yarn download-cli && \
chmod +x docker-linux-amd64 && \
yarn test