-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
54 lines (43 loc) · 1.51 KB
/
Copy pathDockerfile.dev
File metadata and controls
54 lines (43 loc) · 1.51 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
# Development environment with both source and target language runtimes
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# Install basic tools
RUN apt-get update && apt-get install -y \
curl \
wget \
git \
vim \
nano \
ca-certificates \
gnupg \
lsb-release \
build-essential \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
# Install Rust for tokei
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Install Go for scc (auto-detect architecture)
RUN ARCH=$(dpkg --print-architecture) && \
if [ "$ARCH" = "amd64" ]; then GO_ARCH="amd64"; \
elif [ "$ARCH" = "arm64" ]; then GO_ARCH="arm64"; \
else echo "Unsupported architecture: $ARCH" && exit 1; fi && \
wget https://go.dev/dl/go1.22.0.linux-${GO_ARCH}.tar.gz && \
tar -C /usr/local -xzf go1.22.0.linux-${GO_ARCH}.tar.gz && \
rm go1.22.0.linux-${GO_ARCH}.tar.gz
ENV PATH="/usr/local/go/bin:${PATH}"
# Install Python and pytest for testing
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Create python symlink
RUN ln -sf /usr/bin/python3 /usr/bin/python
RUN pip3 install pytest
# Install Node.js 20.x LTS
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
# Node.js is available for installing AI agent CLIs at runtime
WORKDIR /workspace
CMD ["/bin/bash"]