-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (31 loc) · 1.62 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# TRICKY: this file is necessarily different than the one used for Heroku review apps due to Heroku's lack of support
# for crucial Docker infrastructure (e.g. Volumes). The steps between the MATCHING DOCKERFILE comments should be made
# to match those in ./heroku.Dockerfile when changes are made. Test-only dependecies - such as Chrome - can be skipped
# by Heroku to speed up deployment
# BEGIN MATCHING DOCKERFILE
# keep this in-sync with .tool-versions!
FROM ruby:2.7.3-buster
# set up app root
WORKDIR /root/values_sorter
# Add wait script to the image
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0/wait ../wait
RUN chmod +x ../wait
# use node LTS, not 10 (Debian default)
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \
# add yarn source to apt package sources
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
# add chrome source to apt package sources
curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
# update apt package lists
apt-get update && \
# install packages
# - nodejs for npm registry access
# - yarn for js package management
# - less for paging in dev consoles
# - google-chrome-stable for selenium testing
apt-get -y install nodejs yarn less google-chrome-stable
# END MATCHING DOCKERFILE
# set bundler path
RUN bundle config path /root/values_sorter/vendor/bundle