diff --git a/.dockerignore b/.dockerignore index de627ed..a559c2e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,6 @@ .git node_modules -Dockerfile \ No newline at end of file +Dockerfile +yarn.lock +npm-debug.log +docker-compose.yml \ No newline at end of file diff --git a/.gitignore b/.gitignore index b512c09..9b5e481 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -node_modules \ No newline at end of file +node_modules +yarn.lock +npm-debug.log \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 064e346..703532f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,9 @@ ENV SOCKS_PORT 9050 ENV INSTANCES 3 -ADD https://deb.nodesource.com/setup_7.x /nodejs_install +ADD https://deb.nodesource.com/setup_7.x /tmp/nodejs_install -RUN bash /nodejs_install +RUN bash /tmp/nodejs_install RUN apt install -y nodejs tor git diff --git a/bitbucket-pipelines.yaml b/bitbucket-pipelines.yaml new file mode 100644 index 0000000..51bda76 --- /dev/null +++ b/bitbucket-pipelines.yaml @@ -0,0 +1,7 @@ +image: znetstar/tor-router + +pipelines: + default: + - step: + script: + - npm test \ No newline at end of file