Fabio76 commited on
Commit
614ee6e
·
verified ·
1 Parent(s): 1d948cd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -9
Dockerfile CHANGED
@@ -13,18 +13,13 @@ RUN apt-get update && apt-get install -y \
13
  && apt-get clean \
14
  && rm -rf /var/lib/apt/lists/*
15
 
 
 
 
 
16
  # Clone the Dify repository
17
  RUN git clone https://github.com/langgenius/dify.git /app
18
 
19
- # Set the working directory to the directory containing requirements.txt
20
- WORKDIR /app/api # Assuming requirements.txt is in the 'api' folder
21
-
22
- # Install Python dependencies
23
- RUN pip install --no-cache-dir -r requirements.txt
24
-
25
- # Set the working directory back to the app root
26
- WORKDIR /app
27
-
28
  # Expose port 80 to the outside world
29
  EXPOSE 80
30
 
 
13
  && apt-get clean \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # Copy the requirements file and install Python dependencies
17
+ COPY requirements.txt /app/
18
+ RUN pip install --no-cache-dir -r /app/requirements.txt
19
+
20
  # Clone the Dify repository
21
  RUN git clone https://github.com/langgenius/dify.git /app
22
 
 
 
 
 
 
 
 
 
 
23
  # Expose port 80 to the outside world
24
  EXPOSE 80
25