Spaces:
Sleeping
Sleeping
Upload Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -14,7 +14,10 @@ ENV ESLINT_NO_CACHE=true
|
|
| 14 |
RUN npm install && npm run build
|
| 15 |
|
| 16 |
# Expose the React app's default port
|
|
|
|
|
|
|
|
|
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
-
# Start the
|
| 20 |
-
CMD ["
|
|
|
|
| 14 |
RUN npm install && npm run build
|
| 15 |
|
| 16 |
# Expose the React app's default port
|
| 17 |
+
RUN npm install -g serve
|
| 18 |
+
|
| 19 |
+
# Expose Hugging Face port
|
| 20 |
EXPOSE 7860
|
| 21 |
|
| 22 |
+
# Start the static server on port 7860
|
| 23 |
+
CMD ["serve", "-s", "build", "-l", "7860"]
|