Skip to content

Instantly share code, notes, and snippets.

@rsp9u
Created September 20, 2019 02:31
Show Gist options
  • Select an option

  • Save rsp9u/58d12f661ea6408dc3f4e6d83014ed0a to your computer and use it in GitHub Desktop.

Select an option

Save rsp9u/58d12f661ea6408dc3f4e6d83014ed0a to your computer and use it in GitHub Desktop.
docker-cypress
FROM cypress/base:10
RUN apt-get update && \
apt-get install -y locales fonts-takao-gothic fonts-takao-mincho && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN echo "ja_JP UTF-8" > /etc/locale.gen && \
locale-gen && \
update-locale LANG=ja_JP.UTF-8 && \
update-locale LANGUAGE="ja_JP:ja" && \
dpkg-reconfigure --frontend nointeractive locales && \
fc-cache -fv
RUN mkdir cytmp && \
cd cytmp && \
npm install cypress && \
cd ../ && \
rm -rf cytmp
# on ci container: "CYPRESS_INSTALL_BINARY=0 npm install"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment