From 109938e21f9bdd0a2077116fd85d9130fd6bbd81 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Thu, 4 Jul 2019 12:41:27 +0200 Subject: [PATCH] Update Dockerfile to add .snyk before running yarn install --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a6f5a3..327484e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,10 @@ FROM cypress/base:10 as builder -# If only we could use globs in COPY or ADD. But alas, we can not. -COPY ./package.json /build/package.json -COPY ./yarn.lock /build/yarn.lock - WORKDIR /build + +COPY ./package.json ./yarn.lock ./.snyk ./ RUN yarn install --frozen-lockfile + COPY ./ ./ WORKDIR /build/autopublish-app RUN yarn run lint && yarn run build