mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 01:37:26 +00:00
Add Dockerfile for Travis
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
FROM selenium/node-chrome:latest
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
RUN apt-get update -qqy \
|
||||||
|
&& apt-get -qqy install python git build-essential \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
|
||||||
|
&& rm /bin/sh && ln -s /bin/bash /bin/sh \
|
||||||
|
&& chown seluser /usr/local
|
||||||
|
|
||||||
|
ENV NVM_DIR /usr/local/nvm
|
||||||
|
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \
|
||||||
|
&& source $NVM_DIR/nvm.sh \
|
||||||
|
&& nvm install v8
|
||||||
|
|
||||||
|
ENV CHROME_BIN /opt/google/chrome/chrome
|
||||||
|
ENV INSIDE_DOCKER=1
|
||||||
|
|
||||||
|
WORKDIR /usr/src
|
||||||
|
ENTRYPOINT source $NVM_DIR/nvm.sh && npm i && npm test
|
||||||
8131
package-lock.json
generated
8131
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,7 +9,7 @@
|
|||||||
"start": "webpack serve --host 0.0.0.0 --hot",
|
"start": "webpack serve --host 0.0.0.0 --hot",
|
||||||
"build": "webpack -p",
|
"build": "webpack -p",
|
||||||
"lint": "eslint src",
|
"lint": "eslint src",
|
||||||
"test": "mocha -R spec"
|
"test": "npm run build && mocha -R spec"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": [
|
"extends": [
|
||||||
|
|||||||
Reference in New Issue
Block a user