ruv commited on
Commit
6511cb3
·
verified ·
1 Parent(s): e4fc093

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -11,8 +11,8 @@ COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # Install Node.js and npm
14
- RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
15
- RUN apt-get install -y nodejs
16
 
17
  # Copy the package.json and package-lock.json files to the working directory
18
  COPY package*.json ./
@@ -26,6 +26,9 @@ COPY . .
26
  # Build the React application
27
  RUN npm run build
28
 
 
 
 
29
  # Expose the port on which the Flask application will run
30
  EXPOSE 7860
31
 
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # Install Node.js and npm
14
+ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
15
+ apt-get install -y nodejs
16
 
17
  # Copy the package.json and package-lock.json files to the working directory
18
  COPY package*.json ./
 
26
  # Build the React application
27
  RUN npm run build
28
 
29
+ # Verify Node.js and npm installation
30
+ RUN node --version && npm --version
31
+
32
  # Expose the port on which the Flask application will run
33
  EXPOSE 7860
34