-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (18 loc) · 854 Bytes
/
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
FROM ruby:2.4-alpine
MAINTAINER Néstor Coppi <[email protected]>
RUN echo "gem: --no-rdoc --no-ri" >> ~/.gemrc \
&& apk --update add --virtual build-dependencies build-base gcc postgresql-dev linux-headers libxml2 libxml2-dev libxml2-utils libxslt libxslt-dev \
&& apk --update add libpq bash nodejs zlib tzdata git imagemagick \
&& gem install bundler
# RUN git clone --depth 2 https://github.com/Shelvak/firehouse /firehouse
WORKDIR /firehouse
ADD . .
# RUN bundle config build.nokogiri --use-system-libraries && \
RUN bundle install --deployment --jobs 8 && \
apk del build-dependencies
# ENV SOCKETIO => así se compila todo acá
RUN mkdir -p /firehouse/tmp
# RUN cp config/secrets.example.yml config/secrets.yml \
# && mkdir -p /firehouse/tmp \
# && bundle exec rake assets:precompile
CMD /firehouse/start.sh