2016-09-22 12:49:34 +02:00
|
|
|
FROM ruby:2-alpine
|
2016-09-22 10:59:15 +02:00
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
ca-certificates \
|
|
|
|
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 \
|
|
|
|
git \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt-dev \
|
|
|
|
&& git clone --depth 1 https://github.com/srcclr/commit-watcher.git /usr/src/commit-watcher \
|
|
|
|
&& cd /usr/src/commit-watcher \
|
|
|
|
&& bundle config build.nokogiri --use-system-libraries \
|
|
|
|
&& 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"]
|