Spaces:
Running
Running
Commit
·
cfb16ef
1
Parent(s):
4ee4b23
Add error handling to diagnose cp failure
Browse filesShow directory contents if cp fails.
Co-Authored-By: Claude <noreply@anthropic.com>
- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -2,7 +2,7 @@ FROM node:20-slim
|
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
|
| 5 |
-
# Build timestamp: 2026-01-13T00:
|
| 6 |
|
| 7 |
# Install git and git-lfs
|
| 8 |
RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/*
|
|
@@ -32,7 +32,12 @@ RUN esbuild backend/src/server.ts --bundle --platform=node --target=node20 --for
|
|
| 32 |
--external:express --external:socket.io --external:cors --external:dotenv --external:uuid
|
| 33 |
|
| 34 |
# Copy frontend dist (with LFS files properly resolved)
|
| 35 |
-
RUN mkdir -p app &&
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
# Copy public and other files
|
| 38 |
RUN cp -r /tmp/repo/trigo-web/public ./
|
|
|
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
|
| 5 |
+
# Build timestamp: 2026-01-13T00:55
|
| 6 |
|
| 7 |
# Install git and git-lfs
|
| 8 |
RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/*
|
|
|
|
| 32 |
--external:express --external:socket.io --external:cors --external:dotenv --external:uuid
|
| 33 |
|
| 34 |
# Copy frontend dist (with LFS files properly resolved)
|
| 35 |
+
RUN mkdir -p app && \
|
| 36 |
+
(cp -r /tmp/repo/trigo-web/app/dist ./app/ || \
|
| 37 |
+
(echo "=== CP FAILED ===" && \
|
| 38 |
+
echo "Source exists:" && ls -la /tmp/repo/trigo-web/app/ && \
|
| 39 |
+
echo "Source dist:" && ls -la /tmp/repo/trigo-web/app/dist/ 2>&1 || echo "dist not found" && \
|
| 40 |
+
exit 1))
|
| 41 |
|
| 42 |
# Copy public and other files
|
| 43 |
RUN cp -r /tmp/repo/trigo-web/public ./
|