-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
35 lines (27 loc) · 1.11 KB
/
Containerfile
File metadata and controls
35 lines (27 loc) · 1.11 KB
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
34
35
FROM swift:6.2
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
&& apt -q update \
&& apt -q dist-upgrade -y \
&& apt -q install -y curl vim jq \
&& apt-get install -y libjemalloc-dev \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /src
RUN chown ubuntu:ubuntu /src
# Set up the basic user home directory pieces
WORKDIR /home/ubuntu
USER ubuntu
RUN mkdir -p /home/ubuntu/.gemini
# NODEJS via NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
ENV NVM_DIR=/home/ubuntu/.nvm
RUN NVM_DIR=/home/ubuntu/.nvm && . "$NVM_DIR/nvm.sh" && nvm install --lts
RUN echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
# jscpd to look for copy/paste code
RUN NVM_DIR=/home/ubuntu/.nvm && . "$NVM_DIR/nvm.sh" && npm install -g jscpd
# Gemini CLI
RUN NVM_DIR=/home/ubuntu/.nvm && . "$NVM_DIR/nvm.sh" && npm install -g @google/gemini-cli
COPY .gemini/settings.json /home/ubuntu/.gemini/settings.json
COPY .gemini/trustedFolders.json /home/ubuntu/.gemini/trustedFolders.json
# Claude Code CLI
RUN curl -fsSL https://claude.ai/install.sh | bash
WORKDIR /src