Xenova HF staff commited on
Commit
bb61ad3
1 Parent(s): 904b905

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -61,4 +61,9 @@ EXPOSE 3000
61
  ENV PORT 3000
62
  ENV HOSTNAME localhost
63
 
 
 
 
 
 
64
  CMD ["node", "server.js"]
 
61
  ENV PORT 3000
62
  ENV HOSTNAME localhost
63
 
64
+ # Allow the running process to write model files to the cache folder.
65
+ # NOTE: In practice, you would probably want to pre-download the model files to avoid having to download them on-the-fly.
66
+ RUN mkdir -p /app/node_modules/@xenova/.cache/
67
+ RUN chmod 777 -R /app/node_modules/@xenova/
68
+
69
  CMD ["node", "server.js"]