forked from huginn/huginn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (25 loc) · 858 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 export LC_ALL=en_US.UTF-8 ON_HEROKU=true && \
bundle config set --local path vendor/bundle && \
bundle config set --local without 'test development' && \
bundle install -j 4
COPY docker/test/scripts/test_env /scripts/
ENTRYPOINT ["/scripts/test_env"]
CMD ["rake spec"]
USER 1001