Created
March 31, 2021 00:54
-
-
Save d-sea/297b65c49d8ce8c3acc544b2704096bb to your computer and use it in GitHub Desktop.
Ruby on Rails Docker file (Ruby on Rails + Vue.js + MySQL)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.6.6 | |
# Japanese fonts | |
RUN apt-get update && apt-get install -y locales && \ | |
locale-gen ja_JP.UTF-8 && \ | |
apt-get install -y fonts-vlgothic | |
ENV LANG ja_JP.UTF-8 | |
ENV LC_CTYPE ja_JP.UTF-8 | |
RUN localedef -f UTF-8 -i ja_JP ja_JP.utf8 | |
# chrome | |
RUN apt-get update && apt-get install -y unzip && \ | |
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` && \ | |
wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P ~/ && \ | |
unzip ~/chromedriver_linux64.zip -d ~/ && \ | |
rm ~/chromedriver_linux64.zip && \ | |
chown root:root ~/chromedriver && \ | |
chmod 755 ~/chromedriver && \ | |
mv ~/chromedriver /usr/bin/chromedriver && \ | |
sh -c 'wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -' && \ | |
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' && \ | |
apt-get update && apt-get install -y google-chrome-stable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment