Skip to content

Commit 248f55e

Browse files
committed
add Dockerfile
1 parent 38c4fdb commit 248f55e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# node:16 not working so far:
2+
# https://github.com/webtorrent/bittorrent-tracker/actions/workflows/release.yml
3+
FROM node:14
4+
5+
WORKDIR /app
6+
COPY . /app
7+
RUN npm install
8+
9+
# please expose tcp port for both HTTP and WebSocket Tracker
10+
EXPOSE 8000/tcp
11+
# please expose udp port for UDP Tracker
12+
EXPOSE 8000/udp
13+
14+
CMD [ "node", "./bin/cmd.js" ]

0 commit comments

Comments
 (0)