dockerfiles/commit-watcher/Dockerfile
Jess Frazelle acfaf7fa48
Revert "cleanup"
This reverts commit 9208f1cf52.
2016-09-22 04:41:40 -07:00

31 lines
701 B
Docker

FROM ruby:2-alpine
RUN apk add --no-cache \
ca-certificates \
libxml2 \
libxslt \
mariadb-dev \
nodejs \
tzdata
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
COPY database.yml /usr/src/commit-watcher/config/database.yml
COPY production.rb /usr/src/commit-watcher/config/environments/production.rb
VOLUME /usr/src/commit-watcher
CMD ["./scripts/deploy"]