GamerC0der commited on
Commit
2451f9e
·
verified ·
1 Parent(s): 585027f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -1,4 +1,12 @@
1
- FROM docker.io/gamerc0der/astrachat:latest
 
2
 
3
- # Change the port to 7860 by modifying the CMD
 
 
 
 
 
 
 
4
  CMD ["sh", "-c", "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings --ip 0.0.0.0 --port 7860 --no-show-interactive-dev-session"]
 
1
+ # Use pre-built Docker Hub image for Hugging Face Spaces
2
+ FROM docker.io/gamerc0der/astrachat:7860
3
 
4
+ # Expose port 7860 for Hugging Face Spaces
5
+ EXPOSE 7860
6
+
7
+ # Set environment variables for HF Spaces
8
+ ENV NODE_ENV=production \
9
+ RUNNING_IN_DOCKER=true
10
+
11
+ # Default command (should already be set in the base image)
12
  CMD ["sh", "-c", "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings --ip 0.0.0.0 --port 7860 --no-show-interactive-dev-session"]