-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 947 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 947 Bytes
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
FROM ubuntu:24.04
SHELL ["/bin/bash", "-c"]
ENV PYTHON_VERSION=3.12
ENV NODE_VERSION=v22.19.0
# Update package list and install essential packages
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl wget git unzip ca-certificates sudo \
build-essential cmake \
&& rm -rf /var/lib/apt/lists/*
RUN usermod -aG sudo ubuntu && \
echo "ubuntu ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ubuntu && \
chmod 0440 /etc/sudoers.d/ubuntu
USER ubuntu
ENV PATH="/home/ubuntu/.local/bin:/home/ubuntu/.bun/bin:/home/ubuntu/.nvm/versions/node/$NODE_VERSION/bin:$PATH"
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
RUN uv python install $PYTHON_VERSION
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
RUN source /home/ubuntu/.nvm/nvm.sh && nvm install $NODE_VERSION
RUN curl -fsSL https://bun.sh/install | bash
CMD ["/bin/bash"]