k-l-lambda Claude commited on
Commit
127ba83
·
1 Parent(s): 8060255

Fix: use full git clone instead of shallow for LFS files

Browse files

Added ls -la to debug what files exist after clone.

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +5 -4
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-12T21:05
7
 
8
  # Install build dependencies including git-lfs
9
  RUN apt-get update && apt-get install -y \
@@ -18,11 +18,12 @@ RUN git lfs install
18
  # Create app directory
19
  WORKDIR /app
20
 
21
- # Clone the repo and pull LFS files instead of COPY
22
- # This ensures LFS files are properly downloaded
23
- RUN git clone --depth 1 https://huggingface.co/spaces/k-l-lambda/trigo /tmp/repo && \
24
  cd /tmp/repo && \
25
  git lfs pull && \
 
26
  cp -r trigo-web/* /app/ && \
27
  rm -rf /tmp/repo
28
 
 
3
  # Set noninteractive installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
+ # Build timestamp to force cache invalidation: 2026-01-12T21:10
7
 
8
  # Install build dependencies including git-lfs
9
  RUN apt-get update && apt-get install -y \
 
18
  # Create app directory
19
  WORKDIR /app
20
 
21
+ # Clone the repo (full clone) and pull LFS files
22
+ # Note: Can't use --depth 1 with LFS files
23
+ RUN git clone https://huggingface.co/spaces/k-l-lambda/trigo /tmp/repo && \
24
  cd /tmp/repo && \
25
  git lfs pull && \
26
+ ls -la trigo-web/app/dist/ && \
27
  cp -r trigo-web/* /app/ && \
28
  rm -rf /tmp/repo
29