Mohammad Shahid commited on
Commit
4c86fd6
·
1 Parent(s): ea5ca39
Dockerfile CHANGED
@@ -24,6 +24,12 @@ COPY package.json package-lock.json ./
24
  RUN npm ci
25
 
26
  COPY . .
 
 
 
 
 
 
27
  ENV HF_SPACE_ID=1
28
  RUN npm run build
29
 
 
24
  RUN npm ci
25
 
26
  COPY . .
27
+
28
+ # Download required licensed files
29
+ RUN mkdir -p licensed && \
30
+ curl -o licensed/GeoLite2-City.mmdb https://raw.githubusercontent.com/P3TERX/GeoLite.mmdb/download/GeoLite2-City.mmdb && \
31
+ curl -o licensed/SourceHanSansSC-Regular.otf https://raw.githubusercontent.com/adobe-fonts/source-han-sans/refs/heads/release/OTF/SimplifiedChinese/SourceHanSansSC-Regular.otf
32
+
33
  ENV HF_SPACE_ID=1
34
  RUN npm run build
35
 
project_info/updates/2025-09-02-update.md CHANGED
@@ -1,2 +1,5 @@
1
  - Replaced the README.md content with the Hugging Face Spaces configuration template to resolve the missing configuration error.
2
  - Added all required metadata fields for Hugging Face Spaces deployment.
 
 
 
 
1
  - Replaced the README.md content with the Hugging Face Spaces configuration template to resolve the missing configuration error.
2
  - Added all required metadata fields for Hugging Face Spaces deployment.
3
+ - Removed the private thinapps-shared submodule that was blocking HF deployment.
4
+ - Updated README frontmatter to use Docker SDK with correct port configuration.
5
+ - Fixed Dockerfile to download required licensed files (GeoLite2 database and fonts) before build step.