Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 2208074

Browse files
Merge pull request #1 from sandoche/master
docker support
2 parents bcc853c + 8608991 commit 2208074

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM node:14
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY . .
6+
7+
RUN npm install
8+
9+
EXPOSE 8080
10+
CMD [ "node", "server.js" ]

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ export CORSANYWHERE_BLACKLIST=https://abuse.example.com,http://abuse.example.com
166166
export CORSANYWHERE_RATELIMIT='50 3 my.example.com my2.example.com'
167167
node server.js
168168
```
169-
169+
## Run with docker
170+
docker build . -t cors-anywhere
171+
docker run -p 8080:80 cors-anywhere
170172

171173
## License
172174

0 commit comments

Comments
 (0)