jamesw853 commited on
Commit
eb85965
·
verified ·
1 Parent(s): 210f81c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -33,11 +33,12 @@ RUN mkdir -p /home/user/.ssh && \
33
  RUN curl --retry 3 --retry-delay 2 --max-time 60 -fsSL \
34
  https://raw.githubusercontent.com/opencode-ai/opencode/refs/heads/main/install | bash
35
 
36
- ENV PATH="/home/user/.opencode/bin:${PATH}"
 
37
 
38
  # 复制 Web 服务代码
39
  COPY --chown=user requirements.txt app.py /home/user/
40
- RUN pip3 install --no-cache-dir -r requirements.txt
41
 
42
  WORKDIR /workspace
43
 
 
33
  RUN curl --retry 3 --retry-delay 2 --max-time 60 -fsSL \
34
  https://raw.githubusercontent.com/opencode-ai/opencode/refs/heads/main/install | bash
35
 
36
+ # 设置 PATH:包含 opencode 和 Python 用户二进制目录
37
+ ENV PATH="/home/user/.opencode/bin:/home/user/.local/bin:${PATH}"
38
 
39
  # 复制 Web 服务代码
40
  COPY --chown=user requirements.txt app.py /home/user/
41
+ RUN pip3 install --user --no-cache-dir -r requirements.txt
42
 
43
  WORKDIR /workspace
44