Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM python:3.12-slim

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive

#ENV UV_INDEX_URL=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please removed these comments.


RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
gnupg \
procps \
&& rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& NODE_MAJOR=22 \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" > /etc/apt/sources.list.d/nodesource.list \
&& apt-get update && apt-get install -y nodejs --no-install-recommends \
&& npm install -g pnpm \
&& rm -rf /var/lib/apt/lists/*

RUN npm install -g @marp-team/marp-cli

RUN pip install uv

WORKDIR /app

COPY . .

RUN uv sync

RUN cd web && cp .env.example .env && pnpm install && cd ..
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RUN cd web && pnpm install && cd ..

是不是应该这样?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

哦 看错了 这里也有配置


RUN cp .env.example .env
RUN cp conf.yaml.example conf.yaml

RUN chmod +x ./bootstrap.sh

EXPOSE 8000
EXPOSE 3000

CMD ["./bootstrap.sh", "-d"]
16 changes: 16 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.8'

services:
deerflow:
build:
context: .
dockerfile: Dockerfile
container_name: deerflow
# command: ["./bootstrap.sh", "-d"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please removed this comment.

ports:
- "8000:8000"
- "3000:3000"
volumes:
- ./conf.yaml:/app/conf.yaml
- ./.env:/app/.env
restart: unless-stopped