forked from jerryseigle/nexmo-developer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 756 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 756 Bytes
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
# Base image:
FROM ruby:2.5.1
# Install dependencies
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev lsof
# Install modern NodeJS
run curl -sL https://deb.nodesource.com/setup_8.x | bash -
run curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
run echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
run apt-get update && apt-get install -y nodejs yarn
# Set an environment variable where the Rails app is installed to inside of Docker image:
RUN mkdir -p /app/.git/hooks
WORKDIR /app
# Install Node Dependencies
ADD package.json yarn.lock /app/
RUN yarn install
# Install Ruby Dependencies
ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock
RUN bundle install