Cypress docker build should be faster and added mkcert for later

This commit is contained in:
Jamie Curnow
2020-11-22 16:57:12 +10:00
parent 9f38617135
commit 6fed642aba
5 changed files with 14 additions and 8 deletions

View File

@ -1,6 +1,11 @@
FROM cypress/included:4.12.1
FROM cypress/included:5.6.0
COPY --chown=1000 ./test /test
COPY --chown=1000 ./ /test
# mkcert
ENV MKCERT=1.4.2
RUN wget -O /usr/bin/mkcert "https://github.com/FiloSottile/mkcert/releases/download/v${MKCERT}/mkcert-v${MKCERT}-linux-amd64" \
&& chmod +x /usr/bin/mkcert
WORKDIR /test
RUN yarn install