File size: 743 Bytes
4bb4c00
 
3b099c3
4bb4c00
 
 
 
 
 
 
 
 
 
 
 
 
 
3b099c3
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   # Step 2: Install dependencies
   RUN apt-get update \
       && apt-get install -y git python3 python3-pip npm

   # Step 3: Install ToolJet dependencies
   RUN pip3 install -U pip
   RUN pip3 install tooljet

   # Step 4: Copy ToolJet project files into the Docker image
   COPY . /app

   # Step 5: Set the working directory
   WORKDIR /app

   # Step 6: Expose the relevant port
   EXPOSE 3000

   # Step 7: Print the contents of the working directory
   RUN ls -al

   # Step 8: Install Node.js and npm
   RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
   RUN apt-get install -y nodejs

   # Step 9: Install the required dependencies for ToolJet
   RUN npm install

   # Step 10: Set the command
   CMD ["npm", "start"]