Dockerfile 771 B

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