File size: 878 Bytes
95a8a23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM node:22-bookworm-slim

USER root

RUN apt-get update && apt-get install -y --no-install-recommends \
    python3 python3-pip python3-venv ca-certificates curl git bash procps \
    && rm -rf /var/lib/apt/lists/*

# CodeWhale is the current continuation of DeepSeek-TUI.
RUN npm install -g codewhale@0.9.10

RUN usermod -l user -d /home/user -m node && groupmod -n user node

ENV HOME=/home/user \
    PATH=/home/user/.local/bin:/usr/local/bin:$PATH \
    PYTHONUNBUFFERED=1 \
    PORT=7860 \
    DEEPSEEK_MCP_CONFIG=/home/user/app/.codewhale/mcp.json

WORKDIR /home/user/app

COPY --chown=user:user requirements.txt /home/user/app/requirements.txt

RUN python3 -m pip install --break-system-packages --no-cache-dir -r /home/user/app/requirements.txt

COPY --chown=user:user . /home/user/app

RUN chmod +x /home/user/app/start.sh

USER user

CMD ["/home/user/app/start.sh"]