From f949698106b15f13d96e2718257419cd1f767990 Mon Sep 17 00:00:00 2001 From: Sandoche Adittane Date: Thu, 15 Apr 2021 17:39:34 +0100 Subject: [PATCH 1/2] :whale: Adding dockerfile --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b2a3ad09 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:14 + +WORKDIR /usr/src/app + +COPY . . + +RUN npm install + +EXPOSE 8080 +CMD [ "node", "server.js" ] From 8608991f399a6b0f38480e9d4cf8c2bd1ffc34f7 Mon Sep 17 00:00:00 2001 From: Sandoche Adittane Date: Thu, 15 Apr 2021 17:42:08 +0100 Subject: [PATCH 2/2] :memo: Updating doc --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ec7fd646..d0d9ce35 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,9 @@ export CORSANYWHERE_BLACKLIST=https://abuse.example.com,http://abuse.example.com export CORSANYWHERE_RATELIMIT='50 3 my.example.com my2.example.com' node server.js ``` - +## Run with docker +docker build . -t cors-anywhere +docker run -p 8080:80 cors-anywhere ## License