1
0

Dockerfile 894 B

12345678910111213141516171819202122232425262728293031323334
  1. FROM ghcr.io/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 export LC_ALL=en_US.UTF-8 ON_HEROKU=true && \
  19. bundle config set --local path vendor/bundle && \
  20. bundle config set --local without 'test development' && \
  21. bundle install -j 4
  22. COPY docker/test/scripts/test_env /scripts/
  23. ENTRYPOINT ["/scripts/test_env"]
  24. CMD ["rake spec"]
  25. ARG UID=1001
  26. USER $UID
  27. ENV HOME /app