Skip to content

Instantly share code, notes, and snippets.

@badgeek
Created July 23, 2024 07:29
Show Gist options
  • Save badgeek/b21678b2bc09349a79bf3011759b1b35 to your computer and use it in GitHub Desktop.
Save badgeek/b21678b2bc09349a79bf3011759b1b35 to your computer and use it in GitHub Desktop.
FROM cypress/base
COPY . /opt/app
WORKDIR /opt/app
RUN npx cypress install # Install Cypress binary into image
COPY . .
ENTRYPOINT ["npx", "cypress", "run"]
@badgeek
Copy link
Author

badgeek commented Jul 23, 2024

fix-permission:
	@echo "Fixing permissions for Docker socket..."
	docker exec -it -u root jenkins bash -c "\
	  chmod 666 /var/run/docker.sock && \
	  exit"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment