1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00

update casperjs

This commit is contained in:
kev 2016-02-10 20:44:23 +08:00
parent 4953ba1837
commit 70215eaa71
5 changed files with 14 additions and 10 deletions

View File

@ -5,24 +5,28 @@
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
ENV PHANTOM_URL https://github.com/vimagick/dockerfiles/raw/master/webkit/bin/phantomjs
ENV PHANTOM_URL https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
ENV PHANTOM_DIR /usr/local/bin
ENV CASPER_URL https://github.com/n1k0/casperjs/archive/master.tar.gz
ENV CASPER_DIR /usr/local/casperjs/
ENV CASPER_DIR /usr/local/casperjs
RUN apt-get update \
&& apt-get install -y curl \
RUN set -xe \
&& apt-get update \
&& apt-get install -y bzip2 \
curl \
libfontconfig \
libicu52 \
libsqlite3-0 \
python \
&& curl -sSL $PHANTOM_URL -o /usr/local/bin/phantomjs \
&& curl -sSL $PHANTOM_URL | tar xj -C $PHANTOM_DIR --strip 2 --wildcards '*/bin/phantomjs' \
&& chmod +x /usr/local/bin/phantomjs \
&& mkdir -p $CASPER_DIR \
&& curl -sSL $CASPER_URL | tar xz --strip 1 -C $CASPER_DIR \
&& sed -i '/Warning PhantomJS v2.0 not yet released/s@^@//@' $CASPER_DIR/bin/bootstrap.js \
&& ln -sf $CASPER_DIR/bin/casperjs /usr/local/bin/ \
&& apt-get remove -y bzip2 \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY ./libjpeg.so.8 /usr/lib/x86_64-linux-gnu/
COPY ./sample.js /app/
VOLUME /app/

Binary file not shown.

View File

@ -5,7 +5,7 @@
FROM vimagick/alpine-arm
MAINTAINER kev <noreply@datageek.info>
ENV GHOST_VER 0.7.5
ENV GHOST_VER 0.7.6
ENV GHOST_URL https://ghost.org/archives/ghost-$GHOST_VER.zip
ENV GHOST_SOURCE /usr/src/ghost
ENV GHOST_CONTENT /var/lib/ghost

View File

@ -3,7 +3,7 @@
#
FROM alpine
MAINTAINER kev <noreply@datageek.inf>
MAINTAINER kev <noreply@datageek.info>
ENV NETNAME=netname \
PIDFILE=/run/tinc.$NETNAME.pid \

View File

@ -3,7 +3,7 @@
#
FROM debian:jessie
MAINTAINER kev <noreply@datageek.inf>
MAINTAINER kev <noreply@datageek.info>
ENV NETNAME netname
ENV PIDFILE /run/tinc.$NETNAME.pid