12345678910111213141516171819202122232425262728 |
- FROM huginn/huginn-single-process
- ENV PHANTOM_VERSION "phantomjs-2.1.1"
- ENV PHANTOM_JS "${PHANTOM_VERSION}-linux-x86_64"
- USER 0
- RUN apt-get update && \
- apt-get -y install \
- build-essential \
- chrpath \
- libssl-dev \
- libxft-dev \
- libfreetype6 \
- libfreetype6-dev \
- libfontconfig1 \
- libfontconfig1-dev curl && \
- apt-get -y clean && \
- curl -Ls https://bitbucket.org/ariya/phantomjs/downloads/${PHANTOM_JS}.tar.bz2 \
- | tar jxvf - --strip-components=2 -C /usr/local/bin/ ${PHANTOM_JS}/bin/phantomjs
- RUN LC_ALL=en_US.UTF-8 ON_HEROKU=true bundle install --with test development --path vendor/bundle -j 4
- COPY docker/test/scripts/test_env /scripts/
- ENTRYPOINT ["/scripts/test_env"]
- CMD ["rake spec"]
- USER 1001
|