Expanic commited on
Commit
43d60ca
·
1 Parent(s): 35418fa

Fix file permissions for SQLite database creation

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -41,4 +41,8 @@ EXPOSE 7860
41
  # Next.js will use this PORT variable automatically
42
  ENV PORT=7860
43
 
 
 
 
 
44
  CMD ["/app/run.sh"]
 
41
  # Next.js will use this PORT variable automatically
42
  ENV PORT=7860
43
 
44
+ # Hugging Face Spaces run as a non-root user (uid 1000).
45
+ # Give full permissions to /app so SQLite can be created.
46
+ RUN chmod -R 777 /app
47
+
48
  CMD ["/app/run.sh"]