Bc-AI commited on
Commit
ee3a6f0
·
verified ·
1 Parent(s): f48d104

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -6,11 +6,11 @@ FROM python:3.11-slim
6
  # Set environment variables
7
  ENV PYTHONUNBUFFERED=1 \
8
  PYTHONDONTWRITEBYTECODE=1 \
9
- SACCP_HEAD_URL="https://your-head-node.hf.space" \
10
  SACCP_NODE_TYPE="CPU" \
11
  SACCP_NODE_OWNER="anonymous" \
12
  SACCP_AUTO_REGISTER="true" \
13
- SPACE_HOST="https://your-worker.hf.space" \
14
  PORT=7860
15
 
16
  # Create non-root user (HF Spaces requirement)
@@ -28,7 +28,7 @@ COPY requirements_worker.txt .
28
  RUN pip install --no-cache-dir -r requirements_worker.txt
29
 
30
  # Copy application
31
- COPY worker_node.py .
32
 
33
  # Change ownership
34
  RUN chown -R user:user /home/user/app
@@ -44,4 +44,4 @@ HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
44
  CMD curl -f http://localhost:7860/health || exit 1
45
 
46
  # Run the worker node
47
- CMD ["uvicorn", "worker_node:app", "--host", "0.0.0.0", "--port", "7860"]
 
6
  # Set environment variables
7
  ENV PYTHONUNBUFFERED=1 \
8
  PYTHONDONTWRITEBYTECODE=1 \
9
+ SACCP_HEAD_URL="https://bc-ai-saccp-head.hf.space" \
10
  SACCP_NODE_TYPE="CPU" \
11
  SACCP_NODE_OWNER="anonymous" \
12
  SACCP_AUTO_REGISTER="true" \
13
+ SPACE_HOST="https://bc-ai-node-test.hf.space" \
14
  PORT=7860
15
 
16
  # Create non-root user (HF Spaces requirement)
 
28
  RUN pip install --no-cache-dir -r requirements_worker.txt
29
 
30
  # Copy application
31
+ COPY app.py .
32
 
33
  # Change ownership
34
  RUN chown -R user:user /home/user/app
 
44
  CMD curl -f http://localhost:7860/health || exit 1
45
 
46
  # Run the worker node
47
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]