-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (38 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
47 lines (38 loc) · 1.13 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
FROM ubuntu:latest
RUN apt-get -y update \
&& apt-get install -y --no-install-recommends \
git \
make \
wget \
vim \
build-essential \
openssh-client \
ca-certificates \
gnupg2 \
&& rm -rf /var/lib/apt/lists/*
ARG USERNAME=ubuntu
USER $USERNAME
WORKDIR /home/$USERNAME
SHELL ["/bin/bash", "-c"]
RUN set -o pipefail \
&& wget -qO- https://astral.sh/uv/install.sh \
| sh
RUN set -o pipefail \
&& wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh \
| bash
# Required as when using a mount with write permissions in a RUN command
# it fails because of permission reasons.
COPY --chown=ubuntu:ubuntu docs docs
RUN source .nvm/nvm.sh \
&& nvm install 24 \
&& corepack enable yarn \
&& cd docs \
&& corepack use yarn \
&& cd .. \
&& rm -rf docs
ENV PATH="/home/$USERNAME/.local/bin/:$PATH"
RUN uv python install 3.11 \
&& uv python install 3.13
RUN --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
--mount=type=bind,source=.python-version,target=.python-version \
uv sync --no-install-project --no-install-workspace --all-extras