Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
test to read file from volume data
Browse files- Dockerfile +1 -1
- vite.config.ts +0 -1
Dockerfile
CHANGED
@@ -20,7 +20,7 @@ RUN chmod +x entrypoint.sh
|
|
20 |
EXPOSE 3000
|
21 |
|
22 |
# create symlink for /data/uploads to /static/data/uploads
|
23 |
-
|
24 |
|
25 |
# Start the application
|
26 |
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
|
|
|
20 |
EXPOSE 3000
|
21 |
|
22 |
# create symlink for /data/uploads to /static/data/uploads
|
23 |
+
RUN mkdir -p ./static/data && ln -s /data/uploads ./static/data/uploads
|
24 |
|
25 |
# Start the application
|
26 |
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
|
vite.config.ts
CHANGED
@@ -12,6 +12,5 @@ export default defineConfig({
|
|
12 |
strict: false,
|
13 |
allow: [".."],
|
14 |
},
|
15 |
-
origin: "http://localhost:3000",
|
16 |
}
|
17 |
});
|
|
|
12 |
strict: false,
|
13 |
allow: [".."],
|
14 |
},
|
|
|
15 |
}
|
16 |
});
|