2017-05-31 04:03:04 +02:00
|
|
|
FROM ruby:alpine
|
2016-09-22 10:59:15 +02:00
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
ca-certificates \
|
2016-09-22 14:08:48 +02:00
|
|
|
git \
|
2016-09-22 10:59:15 +02:00
|
|
|
libxml2 \
|
|
|
|
libxslt \
|
2016-09-22 11:22:01 +02:00
|
|
|
mariadb-dev \
|
2016-09-22 12:49:34 +02:00
|
|
|
nodejs \
|
2016-09-22 12:29:51 +02:00
|
|
|
tzdata
|
2016-09-22 10:59:15 +02:00
|
|
|
|
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
build-base \
|
|
|
|
cmake \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt-dev \
|
2017-05-31 04:03:04 +02:00
|
|
|
ruby-json \
|
2016-09-22 10:59:15 +02:00
|
|
|
&& git clone --depth 1 https://github.com/srcclr/commit-watcher.git /usr/src/commit-watcher \
|
|
|
|
&& cd /usr/src/commit-watcher \
|
2017-05-31 04:03:04 +02:00
|
|
|
&& gem install \
|
|
|
|
activesupport-json_encoder \
|
|
|
|
--no-rdoc --no-ri \
|
2016-09-22 10:59:15 +02:00
|
|
|
&& bundle config build.nokogiri --use-system-libraries \
|
2017-05-31 04:03:04 +02:00
|
|
|
&& bundle update sdoc \
|
2016-09-22 10:59:15 +02:00
|
|
|
&& bundle install \
|
|
|
|
&& apk del .build-deps
|
|
|
|
|
|
|
|
WORKDIR /usr/src/commit-watcher
|
2016-09-22 13:41:40 +02:00
|
|
|
|
|
|
|
COPY database.yml /usr/src/commit-watcher/config/database.yml
|
2016-09-22 12:49:34 +02:00
|
|
|
VOLUME /usr/src/commit-watcher
|
2016-09-22 10:59:15 +02:00
|
|
|
|
|
|
|
CMD ["./scripts/deploy"]
|