-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
59 lines (47 loc) · 1.59 KB
/
Dockerfile
File metadata and controls
59 lines (47 loc) · 1.59 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# Install base dependencies (without neovim from apt)
RUN apt-get update && apt-get install -y \
git \
curl \
wget \
build-essential \
tmux \
ripgrep \
fd-find \
unzip \
ca-certificates \
sudo \
gosu \
&& rm -rf /var/lib/apt/lists/*
# Install Neovim 0.11.3 (latest stable)
RUN wget https://github.com/neovim/neovim/releases/download/v0.11.3/nvim-linux-x86_64.tar.gz -O /tmp/nvim.tar.gz \
&& tar -xzf /tmp/nvim.tar.gz -C /opt \
&& ln -s /opt/nvim-linux-x86_64/bin/nvim /usr/local/bin/nvim \
&& rm /tmp/nvim.tar.gz
# Install Node.js (required for Copilot CLI)
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
#Install Miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh \
&& bash /tmp/miniconda.sh -b -p /opt/conda \
&& rm /tmp/miniconda.sh
# Add conda to PATH and auto-accept ToS
ENV PATH=/opt/conda/bin:$PATH
ENV CONDA_PLUGINS_AUTO_ACCEPT_TOS=true
# Configure conda
RUN conda init bash && \
conda config --set always_yes true && \
conda config --set channel_priority strict
# Install latest Python
RUN conda install -y python && conda clean -a -y
# Install GitHub Copilot CLI
RUN npm install -g @github/copilot
# Copy scripts
COPY setup-configs.sh /usr/local/bin/setup-configs.sh
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/setup-configs.sh /usr/local/bin/entrypoint.sh
WORKDIR /workspace
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["/bin/bash"]