enzostvs HF staff commited on
Commit
1b66408
β€’
1 Parent(s): 549adfc

dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. vite.config.ts +1 -1
Dockerfile CHANGED
@@ -20,5 +20,8 @@ RUN chmod +x entrypoint.sh
20
  # Expose the application port (assuming your app runs on port 3000)
21
  EXPOSE 3000
22
 
 
 
 
23
  # Start the application
24
  ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
 
20
  # Expose the application port (assuming your app runs on port 3000)
21
  EXPOSE 3000
22
 
23
+ # create symlink for /data/uploads to /static/data/uploads
24
+ RUN mkdir -p ./static/data && ln -s /data/uploads ./static/data/uploads
25
+
26
  # Start the application
27
  ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
vite.config.ts CHANGED
@@ -9,7 +9,7 @@ export default defineConfig({
9
  ],
10
  server: {
11
  fs: {
12
- allow: [searchForWorkspaceRoot(process.cwd()), '/uploads', '/data']
13
  }
14
  }
15
  });
 
9
  ],
10
  server: {
11
  fs: {
12
+ allow: [searchForWorkspaceRoot(process.cwd()), '/uploads', '/data/uploads']
13
  }
14
  }
15
  });