File size: 917 Bytes
496ca32
 
 
 
 
 
 
 
 
 
 
 
337ba97
 
 
 
 
496ca32
337ba97
 
 
 
 
 
 
496ca32
337ba97
 
 
a7f4ee8
 
337ba97
 
 
 
496ca32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Use an official Docker image as a base
FROM docker:latest

# Install Docker Compose
RUN apk add --no-cache docker-compose

# Set the working directory
WORKDIR /app

# Copy the entire project into the container
COPY . .

# Create necessary directories
RUN mkdir -p /app/dify-main/docker

# Copy configuration files
RUN cp /app/docker/.env.example /app/dify-main/docker/.env

# Debug: List contents
RUN echo "=== Listing /app contents ===" && \
    ls -la /app && \
    echo "=== Listing /app/docker contents ===" && \
    ls -la /app/docker && \
    echo "=== Listing /app/dify-main/docker contents ===" && \
    ls -la /app/dify-main/docker

# Set environment variables for Hugging Face Spaces
ENV DOCKER_DEFAULT_PLATFORM=linux/amd64
ENV HF_SPACES=1
ENV ENV_FILE_PATH=/app/dify-main/docker/.env

# Change to the docker directory
WORKDIR /app/dify-main/docker

# Run Docker Compose
CMD ["docker-compose", "up", "-d"]