Skip to content

Commit

Permalink
fix: Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankGTY committed Sep 26, 2024
1 parent 3700091 commit 30ce312
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deploy/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ WORKDIR /root

# 环境变量
ENV AITUTOR_ROOT=/root/aitutor_data
ENV PYTHONPATH="/root/aes-ai-tutor/libs/aitutor:${PYTHONPATH}"

# 初始化环境
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
Expand All @@ -26,8 +27,6 @@ WORKDIR /root/aes-ai-tutor/libs
RUN poetry config virtualenvs.create false
RUN poetry install --with lint,test

## 确保 Python 可以找到 aitutor 模块
ENV PYTHONPATH="/root/aes-ai-tutor/libs/aitutor:${PYTHONPATH}"

# 初始化配置
WORKDIR /root/aes-ai-tutor/libs/aitutor
Expand Down

0 comments on commit 30ce312

Please sign in to comment.