forked from fablabbcn/fablabs.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (32 loc) · 1.02 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
39
40
41
42
43
44
45
FROM ruby:2.1.9
# Install essential Linux packages
RUN apt-get update -qq && apt-get install -y \
build-essential \
libpq-dev \
libqt4-dev \
libqtwebkit-dev \
postgresql-client \
nodejs \
npm
ENV APPROOT /fablabs
WORKDIR /$APPROOT
# Create application home. App server will need the pids dir so just create everything in one shot
RUN mkdir -p $APPROOT/tmp/pids
# Update Gems
#RUN gem update --system
# Prevent bundler warnings; ensure that the bundler version executed is >= that which created Gemfile.lock
RUN gem install bundler
# Finish establishing our Ruby environment
#RUN gem install nokogiri
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES 1
#RUN gem install capybara-webkit -v '1.10.1'
#RUN gem install kgio -v '2.9.2' --platform=ruby --verbose
ADD Gemfile Gemfile
ADD Gemfile.lock Gemfile.lock
RUN bundle install
# Copy the Rails application into place
COPY . $APPROOT
RUN npm install -g bower
RUN echo '{ "allow_root": true }' > /root/.bowerrc
RUN ln -s `which nodejs` /usr/bin/node
RUN /usr/local/bin/bower install