mfoud444 commited on
Commit
a6cc4ba
·
verified ·
1 Parent(s): 59b204d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -12
Dockerfile CHANGED
@@ -6,16 +6,6 @@ WORKDIR /app
6
 
7
  RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
8
 
9
- # Option 1: If using Vite directly, modify vite.config.js
10
- RUN if [ -f "vite.config.js" ]; then \
11
- echo 'export default { server: { allowedHosts: ["mfoud444-randai.hf.space"] } }' > vite.config.js; \
12
- fi
13
-
14
- # Option 2: If Remix controls the server, modify remix.config.js
15
- RUN if [ -f "remix.config.js" ]; then \
16
- sed -i '/export default {/a\ server: {\n allowedHosts: ["mfoud444-randai.hf.space"]\n },' remix.config.js; \
17
- fi
18
-
19
  RUN chown -R node:node /app
20
 
21
  USER node
@@ -24,5 +14,4 @@ RUN npx --yes pnpm install
24
 
25
  EXPOSE 7860
26
 
27
- # Run normally (no --allowed-hosts flag needed if config is set)
28
- CMD ["npx", "--yes", "pnpm", "run", "dev", "--host", "0.0.0.0", "--port", "7860"]
 
6
 
7
  RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
8
 
 
 
 
 
 
 
 
 
 
 
9
  RUN chown -R node:node /app
10
 
11
  USER node
 
14
 
15
  EXPOSE 7860
16
 
17
+ CMD ["npx", "--yes", "pnpm", "run", "dev", "--host", "0.0.0.0", "-p", "7860"]