Fabio76 commited on
Commit
1eb37b9
·
verified ·
1 Parent(s): ff50ee9

Rename Dockerfile to dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile → dockerfile +3 -9
Dockerfile → dockerfile RENAMED
@@ -14,14 +14,11 @@ RUN apt-get update && apt-get install -y \
14
  && apt-get clean \
15
  && rm -rf /var/lib/apt/lists/*
16
 
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,8 +27,5 @@ RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-c
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"]
 
14
  && apt-get clean \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
+ # Copy the current directory contents into the container at /app
18
+ COPY . /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
  # Expose port 80 to the outside world
28
  EXPOSE 80
29
 
 
 
 
30
  # Run the application
31
  CMD ["docker-compose", "up"]