ruv commited on
Commit
c05b4ff
·
verified ·
1 Parent(s): b011b28

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -19
Dockerfile CHANGED
@@ -1,39 +1,24 @@
1
- # Use an official Python runtime as the base image
2
  FROM python:3.9
3
 
4
- # Set the working directory in the container
5
  WORKDIR /app
6
 
7
- # Copy the requirements file to the working directory
8
  COPY requirements.txt .
 
9
 
10
- # Install the Python dependencies
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 ./
19
-
20
- # Install the Node.js dependencies
21
- RUN npm install
22
- RUN npm install reactflow
23
-
24
- # Copy the Flask application code to the working directory
25
- COPY app.py .
26
-
27
- # Copy the React application code to the working directory
28
  COPY src ./src
29
 
30
- # Copy the public directory
31
- COPY public ./public
32
 
33
- # Build the React application
34
  RUN npm run build
35
 
36
- # Copy the build directory to the Docker image
37
  COPY build ./build
38
 
39
  # Expose the port on which the Flask application will run
 
 
1
  FROM python:3.9
2
 
 
3
  WORKDIR /app
4
 
5
+ COPY public ./public
6
  COPY requirements.txt .
7
+ COPY app.py .
8
 
 
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
 
11
  RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
12
  apt-get install -y nodejs
13
 
 
14
  COPY package*.json ./
 
 
 
 
 
 
 
 
 
15
  COPY src ./src
16
 
17
+ RUN npm install reactflow
18
+ RUN npm install
19
 
 
20
  RUN npm run build
21
 
 
22
  COPY build ./build
23
 
24
  # Expose the port on which the Flask application will run