Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,4 @@ config/
*.sh
nohup.out
xiao_config.yaml
.DS_Store
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
FROM python:3.12 AS builder
WORKDIR /app
COPY . .
RUN pip install pdm && \
pdm install

FROM python:3.12

WORKDIR /app
COPY --from=builder /app/.venv /app/.venv

# 首先复制全部代码
COPY . .

# 直接安装依赖
RUN pip install --no-cache-dir -e .

ENV XDG_CONFIG_HOME=/config
ENV XIAOGPT_PORT=9527
VOLUME /config
EXPOSE 9527
ENTRYPOINT ["pdm", "run", "xiaogpt.py"]
Comment thread
yihong0618 marked this conversation as resolved.
ENTRYPOINT ["python", "xiaogpt.py"]