Spaces:
Sleeping
Sleeping
Commit ·
31f7326
1
Parent(s): e8d7c1a
commit initial update 28082025-004
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -14,6 +14,8 @@ COPY . .
|
|
| 14 |
# Build React app
|
| 15 |
RUN npm run build
|
| 16 |
|
|
|
|
|
|
|
| 17 |
# Install a simple static server
|
| 18 |
RUN npm install -g serve
|
| 19 |
|
|
@@ -21,4 +23,4 @@ RUN npm install -g serve
|
|
| 21 |
EXPOSE 7860
|
| 22 |
|
| 23 |
# Start the React build with serve
|
| 24 |
-
CMD ["
|
|
|
|
| 14 |
# Build React app
|
| 15 |
RUN npm run build
|
| 16 |
|
| 17 |
+
ENV REACT_APP_HF_TOKEN=${HF_TOKEN}
|
| 18 |
+
|
| 19 |
# Install a simple static server
|
| 20 |
RUN npm install -g serve
|
| 21 |
|
|
|
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
# Start the React build with serve
|
| 26 |
+
CMD ["serve", "-s", "build", "-l", "7860"]
|