Severian commited on
Commit
337ba97
1 Parent(s): a7f4ee8

Update Dockerfile for correct directory structure

Browse files
Files changed (2) hide show
  1. Dockerfile +19 -6
  2. README.md +10 -2
Dockerfile CHANGED
@@ -10,14 +10,27 @@ WORKDIR /app
10
  # Copy the entire project into the container
11
  COPY . .
12
 
13
- # Change to the dify-main/docker directory
14
- WORKDIR /app/dify-main/docker
 
 
 
15
 
16
- # Correct the path to the .env.example file
17
- RUN cp /app/docker/.env.example .env
 
 
 
 
 
18
 
19
- # Ensure the application reads the .env file
 
 
20
  ENV ENV_FILE_PATH=/app/dify-main/docker/.env
21
 
22
- # Run Docker Compose to build and start the services
 
 
 
23
  CMD ["docker-compose", "up", "-d"]
 
10
  # Copy the entire project into the container
11
  COPY . .
12
 
13
+ # Create necessary directories
14
+ RUN mkdir -p /app/dify-main/docker
15
+
16
+ # Copy configuration files
17
+ RUN cp /app/docker/.env.example /app/dify-main/docker/.env
18
 
19
+ # Debug: List contents
20
+ RUN echo "=== Listing /app contents ===" && \
21
+ ls -la /app && \
22
+ echo "=== Listing /app/docker contents ===" && \
23
+ ls -la /app/docker && \
24
+ echo "=== Listing /app/dify-main/docker contents ===" && \
25
+ ls -la /app/dify-main/docker
26
 
27
+ # Set environment variables for Hugging Face Spaces
28
+ ENV DOCKER_DEFAULT_PLATFORM=linux/amd64
29
+ ENV HF_SPACES=1
30
  ENV ENV_FILE_PATH=/app/dify-main/docker/.env
31
 
32
+ # Change to the docker directory
33
+ WORKDIR /app/dify-main/docker
34
+
35
+ # Run Docker Compose
36
  CMD ["docker-compose", "up", "-d"]
README.md CHANGED
@@ -1,5 +1,13 @@
1
  ---
2
  title: Dify
 
 
 
3
  sdk: docker
4
- colorFrom: gray
5
- ---
 
 
 
 
 
 
1
  ---
2
  title: Dify
3
+ emoji: 🤖
4
+ colorFrom: blue
5
+ colorTo: pink
6
  sdk: docker
7
+ app_port: 3000
8
+ pinned: false
9
+ ---
10
+
11
+ # Dify
12
+
13
+ Dify is an LLM application development platform.