Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +10 -2
Dockerfile
CHANGED
|
@@ -1,4 +1,12 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|