freinold commited on
Commit
b6dc132
·
unverified ·
1 Parent(s): e3ad5ea

fix(Dockerfile): create and set permissions for Huggingface cache directory

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -1,5 +1,7 @@
1
  FROM ghcr.io/freinold/gliner-api:latest
2
 
3
- ENV HF_HOME=""
 
 
4
 
5
  ENTRYPOINT [ "python", "main.py", "--host", "0.0.0.0" , "--port", "8080" , "--metrics-enabled", "False"]
 
1
  FROM ghcr.io/freinold/gliner-api:latest
2
 
3
+ WORKDIR /app
4
+
5
+ RUN mkdir -p /app/huggingface && chown -R 1000:1000 /app/huggingface
6
 
7
  ENTRYPOINT [ "python", "main.py", "--host", "0.0.0.0" , "--port", "8080" , "--metrics-enabled", "False"]