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 \
|
2018-07-22 00:28:03 +02:00
|
|
|
build-base \
|
|
|
|
cmake \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt-dev \
|
|
|
|
pkgconfig \
|
|
|
|
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 \
|
2018-07-22 00:28:03 +02:00
|
|
|
&& ( \
|
|
|
|
cd /usr/src/commit-watcher \
|
|
|
|
&& gem install \
|
|
|
|
activesupport-json_encoder \
|
|
|
|
--no-rdoc --no-ri \
|
|
|
|
&& bundle config build.nokogiri --use-system-libraries \
|
|
|
|
&& bundle update sdoc \
|
|
|
|
&& bundle install \
|
|
|
|
) \
|
2016-09-22 10:59:15 +02:00
|
|
|
&& 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"]
|