Update Dockerfile to add .snyk before running yarn install

This commit is contained in:
2019-07-04 12:41:27 +02:00
parent c3102f9957
commit 109938e21f
+3 -4
View File
@@ -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