sanch1tx commited on
Commit
f9c75e9
·
verified ·
1 Parent(s): 96bd142

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -1,20 +1,17 @@
1
  FROM node:18
2
 
3
- # Set working directory
4
  WORKDIR /app
5
 
6
- # Copy package files and install dependencies
7
  COPY package*.json ./
8
  RUN npm install
9
 
10
- # Copy rest of the app source code
11
  COPY . .
12
 
13
- # Set Vite cache directory to a writable path
 
 
14
  ENV VITE_CACHE_DIR=/tmp/vite
15
 
16
- # Expose port 7860 (as you are running vite dev server on 7860)
17
  EXPOSE 7860
18
 
19
- # Run the dev server
20
- CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM node:18
2
 
 
3
  WORKDIR /app
4
 
 
5
  COPY package*.json ./
6
  RUN npm install
7
 
 
8
  COPY . .
9
 
10
+ # Make sure /app is writable for Vite cache files
11
+ RUN chmod -R a+w /app
12
+
13
  ENV VITE_CACHE_DIR=/tmp/vite
14
 
 
15
  EXPOSE 7860
16
 
17
+ CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "7860"]