Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
dockerfile
Browse files- Dockerfile +3 -0
- 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 |
});
|