Skip to content

Commit

Permalink
Added missing library
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Dec 4, 2017
1 parent 2f52dd2 commit 0de6634
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
FROM femtopixel/google-lighthouse:0.3.0

LABEL maintainer="Jay MOULIN <[email protected]> <https://twitter.com/moulinjay>"
LABEL maintainer="Jay MOULIN <[email protected]> <https://twitter.com/MoulinJay>"

#https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
USER root
RUN apt-get update; apt-get install libgconf-2-4 -y && rm -Rf /var/lib/apt/lists/*
USER chrome
RUN mkdir -p /home/chrome/testcases && cd /home/chrome && yarn add google-lighthouse-puppeteer
COPY entrypoint.sh /usr/bin/entrypoint
COPY ./bin/lighthouse-puppeteer.js /home/chrome/bin/lighthouse-puppeteer
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION ?= 0.3.3
VERSION ?= 0.3.4
CACHE ?= --no-cache=1
FULLVERSION ?= ${VERSION}
archs = arm32v7 amd64 i386
archs = amd64 i386 arm32v7
.PHONY: install install-npm publishdocker publish-npm docker build-docker publish-docker latest version
all: install publish docker
CACHE= make latest
Expand All @@ -27,7 +27,7 @@ publish-npm: install-npm
npm login && npm publish
build-docker:
$(foreach arch,$(archs), \
cat Dockerfile | sed "s/FROM femtopixel\/google-lighthouse:0.3.0/FROM femtopixel\/google-lighthouse:0.3.0-$(arch)/g" > .build; \
cat Dockerfile | sed -E "s/FROM femtopixel\/google-lighthouse:(.+)/FROM femtopixel\/google-lighthouse:\1-$(arch)/g" > .build; \
if [ $(arch) = arm32v7 ]; then \
docker build -t femtopixel/google-lighthouse-puppeteer:${VERSION}-$(arch) --build-arg ARM=1 -f .build ${CACHE} .;\
else \
Expand Down

0 comments on commit 0de6634

Please sign in to comment.