cypress-docker-images
cypress-docker-images copied to clipboard
cypress/included requires additional installation of cypress
I use cypress/included as a base image for my custom cypress image. It used to work fine until I upgraded it from 5.1.0 to 6.3.0. Cypress.
Now, when I run tests, cypress cannot be resolved.
FROM cypress/included:6.3.0
ARG BUILD_DATE
ARG REVISION_SHA
LABEL org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.revision=$REVISION_SHA \
org.opencontainers.image.description="Base image used to run Cypress tests"
WORKDIR /app
ENV DOCKERIZE_VERSION=v0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
RUN yarn add @knapsack-pro/cypress jsdom axe-core cypress-axe
The solution for this is to add cypress to yarn add command, but it is not something I would expect from cypress/included image.