forked from codebar/planner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (17 loc) · 847 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ruby:2.5.9
# Default node version on apt is old. This makes sure a recent version is installed
# This step also runs apt-get update
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y --force-yes build-essential libpq-dev nodejs
# Install latest chrome dev package
RUN set -ex; \
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& wget -q -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y --force-yes google-chrome-stable --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /planner
COPY Gemfile Gemfile.lock ./
RUN bundle install
COPY . ./