-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathDockerfile.spec
More file actions
29 lines (22 loc) · 913 Bytes
/
Dockerfile.spec
File metadata and controls
29 lines (22 loc) · 913 Bytes
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
FROM dotledger_dotledger:latest
USER root
RUN chown -R root:root /app/
RUN apk --update add fontconfig curl curl-dev
ENV PHANTOMJS_ARCHIVE="phantomjs.tar.gz"
RUN curl -Lk -o $PHANTOMJS_ARCHIVE https://github.com/fgrehm/docker-phantomjs2/releases/download/v2.0.0-20150722/dockerized-phantomjs.tar.gz \
&& tar -xf $PHANTOMJS_ARCHIVE -C /tmp/ \
&& cp -R /tmp/etc/fonts /etc/ \
&& cp -R /tmp/lib/* /lib/ \
&& cp -R /tmp/lib64 / \
&& cp -R /tmp/usr/lib/* /usr/lib/ \
&& cp -R /tmp/usr/lib/x86_64-linux-gnu /usr/ \
&& cp -R /tmp/usr/share/* /usr/share/ \
&& cp /tmp/usr/local/bin/phantomjs /usr/bin/ \
&& rm -fr $PHANTOMJS_ARCHIVE /tmp/*
RUN bundle install --with deveopment test
COPY docker-entrypoint.spec.sh /app/docker-entrypoint.sh
COPY spec /app/spec
COPY .rspec /app/.rspec
COPY .rubocop.yml /app/.rubocop.yml
COPY Rakefile /app/Rakefile
RUN echo "--force-color" >> /app/.rspec