Spaces:
Build error
Build error
File size: 689 Bytes
da09993 | 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 | # Base image
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update && apt-get install -y \
python3 python3-pip python3-venv \
nodejs npm \
redis-server postgresql postgresql-contrib \
supervisor git curl \
&& rm -rf /var/lib/apt/lists/*
# Clone Dify
WORKDIR /app
RUN git clone https://github.com/langgenius/dify.git .
# Setup Python backend
WORKDIR /app/api
RUN pip install -r requirements.txt
# Setup frontend
WORKDIR /app/web
RUN npm install && npm run build
# Setup Supervisor config
WORKDIR /app
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Expose ports
EXPOSE 80 5001
CMD ["/usr/bin/supervisord"] |