Spaces:
Build error
Build error
Update Dockerfile for correct directory structure
Browse files- Dockerfile +19 -6
- README.md +10 -2
Dockerfile
CHANGED
@@ -10,14 +10,27 @@ WORKDIR /app
|
|
10 |
# Copy the entire project into the container
|
11 |
COPY . .
|
12 |
|
13 |
-
#
|
14 |
-
|
|
|
|
|
|
|
15 |
|
16 |
-
#
|
17 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
-
#
|
|
|
|
|
20 |
ENV ENV_FILE_PATH=/app/dify-main/docker/.env
|
21 |
|
22 |
-
#
|
|
|
|
|
|
|
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 |
-
|
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.
|