LahiruD95 commited on
Commit
ee7c50d
·
1 Parent(s): 173f6c0

update docker file

Browse files
.idea/.gitignore ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
.idea/MindPalaceAI.iml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/MindPalaceAI.iml" filepath="$PROJECT_DIR$/.idea/MindPalaceAI.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
Dockerfile CHANGED
@@ -30,6 +30,12 @@ COPY . .
30
 
31
  # 5️⃣ Hugging Face automatically sets $PORT=7860
32
  ENV PORT=7860
 
 
 
 
 
 
33
  EXPOSE ${PORT}
34
 
35
  # 6️⃣ Start the server
 
30
 
31
  # 5️⃣ Hugging Face automatically sets $PORT=7860
32
  ENV PORT=7860
33
+
34
+ # put near the other ENV lines
35
+ ENV XDG_CACHE_HOME=/data/.cache \
36
+ TRANSFORMERS_CACHE=/data/.cache/huggingface \
37
+ HF_HOME=/data/.cache/huggingface
38
+
39
  EXPOSE ${PORT}
40
 
41
  # 6️⃣ Start the server