Workflow-Engine / Dockerfile
Severian's picture
Update Dockerfile for correct directory structure
337ba97
raw
history blame
917 Bytes
# 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"]