devusman commited on
Commit
8e7393f
·
verified ·
1 Parent(s): bcf3975

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  FROM libretranslate/libretranslate:latest
2
 
3
- # ✅ Use a writable directory for cache (Hugging Face allows /tmp and /app)
4
- ENV XDG_DATA_HOME=/tmp/.local/share
5
 
6
  # ✅ Only load English ↔ Arabic to save RAM and speed up startup
7
  ENV LT_LOAD_ONLY=en,ar
 
1
  FROM libretranslate/libretranslate:latest
2
 
3
+ USER root
4
+ RUN mkdir -p /.local && chmod 777 /.local /app/db
5
 
6
  # ✅ Only load English ↔ Arabic to save RAM and speed up startup
7
  ENV LT_LOAD_ONLY=en,ar