Fabio76 commited on
Commit
b70327c
·
verified ·
1 Parent(s): a086974

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -17,8 +17,11 @@ RUN apt-get update && apt-get install -y \
17
  # Clone the Dify repository
18
  RUN git clone https://github.com/langgenius/dify.git /app
19
 
 
 
 
20
  # Install Python dependencies
21
- RUN pip install --no-cache-dir -r /app/requirements.txt
22
 
23
  # Install Docker Compose
24
  RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
@@ -27,5 +30,8 @@ RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-c
27
  # Expose port 80 to the outside world
28
  EXPOSE 80
29
 
 
 
 
30
  # Run the application
31
  CMD ["docker-compose", "up"]
 
17
  # Clone the Dify repository
18
  RUN git clone https://github.com/langgenius/dify.git /app
19
 
20
+ # Set the working directory to the directory containing requirements.txt
21
+ WORKDIR /app/api # Assuming requirements.txt is in the 'api' folder
22
+
23
  # Install Python dependencies
24
+ RUN pip install --no-cache-dir -r requirements.txt
25
 
26
  # Install Docker Compose
27
  RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
 
30
  # Expose port 80 to the outside world
31
  EXPOSE 80
32
 
33
+ # Set the working directory back to the app root
34
+ WORKDIR /app
35
+
36
  # Run the application
37
  CMD ["docker-compose", "up"]