GamerC0der commited on
Commit
9c358df
·
verified ·
1 Parent(s): ce7dd9a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:22-alpine
2
+
3
+ # Install build dependencies that some npm packages require
4
+ RUN apk --no-cache add python3 make g++ linux-headers
5
+
6
+ # Set the working directory
7
+ WORKDIR /app
8
+
9
+ # Install 9router globally via npm
10
+ RUN npm install -g 9router
11
+
12
+ # Configure default 9router environment variables
13
+ ENV NODE_ENV=production
14
+ ENV PORT=20128
15
+ ENV HOSTNAME=0.0.0.0
16
+ ENV DATA_DIR=/app/data
17
+
18
+ # Expose the default 9router dashboard and API port
19
+ EXPOSE 20128
20
+
21
+ # Execute the 9router CLI application on startup
22
+ CMD ["9router"]