| FROM ubuntu:22.04 |
|
|
| USER root |
| ENV DEBIAN_FRONTEND=noninteractive |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| curl wget sudo ttyd git \ |
| python3-pip \ |
| && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ |
| && apt-get install -y nodejs \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN curl -fsSL https://ollama.com/install.sh | sh |
|
|
| |
| RUN npm install -g @anthropic-ai/claude-code |
|
|
| |
| RUN useradd -m -u 1000 user && echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers |
| USER user |
| WORKDIR /home/user |
|
|
| RUN mkdir -p /home/user/storage |
|
|
| COPY --chown=user:user start.sh /home/user/start.sh |
| RUN chmod +x /home/user/start.sh |
|
|
| |
| EXPOSE 7860 |
|
|
| ENTRYPOINT ["/home/user/start.sh"] |