Spaces:
Running
Running
Commit
·
e180aed
1
Parent(s):
6a4b3c0
Add verification step to check pre-built files exist
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ FROM node:20-slim
|
|
| 3 |
# Set noninteractive installation
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
-
# Build timestamp to force cache invalidation: 2026-01-12T20:
|
| 7 |
|
| 8 |
# Install build dependencies
|
| 9 |
RUN apt-get update && apt-get install -y \
|
|
@@ -33,6 +33,10 @@ RUN npm install --omit=dev && \
|
|
| 33 |
# - Backend: backend/dist/backend/src/server.js
|
| 34 |
# - Parser: public/lib/tgnParser.cjs
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
# Set environment variables for Hugging Face Spaces
|
| 37 |
ENV PORT=7860
|
| 38 |
ENV HOST=0.0.0.0
|
|
|
|
| 3 |
# Set noninteractive installation
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
+
# Build timestamp to force cache invalidation: 2026-01-12T20:20
|
| 7 |
|
| 8 |
# Install build dependencies
|
| 9 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 33 |
# - Backend: backend/dist/backend/src/server.js
|
| 34 |
# - Parser: public/lib/tgnParser.cjs
|
| 35 |
|
| 36 |
+
# Verify pre-built files exist
|
| 37 |
+
RUN ls -la backend/dist/backend/src/server.js && \
|
| 38 |
+
ls -la app/dist/index.html
|
| 39 |
+
|
| 40 |
# Set environment variables for Hugging Face Spaces
|
| 41 |
ENV PORT=7860
|
| 42 |
ENV HOST=0.0.0.0
|