dockerfiles/commit-watcher/Dockerfile
Jess Frazelle 7f631b2506
fix build failures
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-12-31 10:55:42 -08:00

31 lines
689 B
Docker

FROM ruby:2.3-alpine
RUN apk add --no-cache \
ca-certificates \
git \
libxml2 \
libxslt \
mariadb-dev \
nodejs \
tzdata
RUN set -x \
&& apk add --no-cache --virtual .build-deps \
build-base \
cmake \
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 \
&& gem install activesupport-json_encoder --no-rdoc --no-ri \
&& apk del .build-deps
WORKDIR /usr/src/commit-watcher
COPY database.yml /usr/src/commit-watcher/config/database.yml
VOLUME /usr/src/commit-watcher
CMD ["./scripts/deploy"]