-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: Add Dockerfile and docker-compose.yaml #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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= | ||
|
|
||
| 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 .. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RUN cd web && pnpm install && cd .. 是不是应该这样? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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"] | ||
| 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"] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please removed these comments.