diff options
| author | mo <mokha@cisco.com> | 2017-04-19 21:14:33 -0600 |
|---|---|---|
| committer | mo <mokha@cisco.com> | 2017-04-19 21:14:33 -0600 |
| commit | 0b677e718dbe57796b79d546d02ffbd15ab5fc30 (patch) | |
| tree | 9d3716e3536edb5e6fc696040218701a225548c7 /Dockerfile | |
| parent | 438e481ca6749560e2277a4ae318b82d9f3b1c48 (diff) | |
add docker.
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..44e35277 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM ruby:2.4 +MAINTAINER mo@mokhan.ca + +RUN apt-get update && apt-get install -y \ + build-essential \ + libpq-dev \ + libxml2-dev \ + libxslt1-dev \ + unzip \ + vim \ + postgresql-client +RUN curl -sL https://deb.nodesource.com/setup_4.x | bash - +RUN apt-get install -y nodejs +RUN npm install npm -g +RUN npm install phantomjs-prebuilt -g + +RUN mkdir -p /app +WORKDIR /app + +ADD Gemfile* ./ +RUN gem install bundler && bundle install --jobs 4 +ADD . ./ |
