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" ] diff --git a/README.md b/README.md index f7a83c53..4158b26e 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