Explorar o código

updating node versions and fixing result tests

Bret Fisher %!s(int64=7) %!d(string=hai) anos
pai
achega
9fa3e4360f
Modificáronse 2 ficheiros con 9 adicións e 3 borrados
  1. 1 1
      result/Dockerfile
  2. 8 2
      result/tests/Dockerfile

+ 1 - 1
result/Dockerfile

@@ -1,4 +1,4 @@
-FROM node:5.11.0-slim
+FROM node:8.9-slim
 
 WORKDIR /app
 

+ 8 - 2
result/tests/Dockerfile

@@ -1,5 +1,11 @@
-FROM node
-RUN npm install -g phantomjs
+FROM node:8.9-slim
+RUN apt-get update -qq && apt-get install -qy \ 
+    ca-certificates \
+    bzip2 \
+    curl \
+    libfontconfig \
+    --no-install-recommends
+RUN yarn global add phantomjs-prebuilt
 ADD . /app
 WORKDIR /app
 CMD ["/app/tests.sh"]